Delphi WINAPI 任意拖动移动控件

转:

procedure DragControl(WinControl: TWincontrol);
const SC_DRAGMOVE = $F012;
begin
ReleaseCapture;
WinControl.Perform(WM_SYSCOMMAND, SC_DRAGMOVE, 0);
end;

posted @ 2022-08-16 13:21  周黔  阅读(150)  评论(0编辑  收藏  举报