dephi中单击鼠标拖动窗口(使用WM_SYSCOMMAND)

 procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  ReleaseCapture;
  Perform(WM_SYSCOMMAND,$f012,0); //开始拖动窗体
end;

http://blog.csdn.net/diligentcatrich/article/details/7008516

posted @ 2016-02-25 18:37  findumars  Views(405)  Comments(0Edit  收藏  举报