5,927
社区成员




type
TControlAccess = class(TControl);
……
for I := 0 to ComponentCount - 1 do begin
if Components[I] is TWinControl then begin
if TControlAccess(Components[I]).MouseCapture then begin
//
end;
end;
end;
for I := 0 to ComponentCount - 1 do begin
if Components[I] is TWinControl then begin
if TWinControl(Components[I]).Focused then
……
end;
end;