5,933
社区成员
发帖
与我相关
我的任务
分享
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;