Delphi中拖动无边框窗口的几种简单方法

1.MouseMove事件中加入:

  ReleaseCapture;
  Perform(WM_SYSCOMMAND, $F017 , 0);

2.MouseDown事件中加入:

POSTMESSAGE(Self.Handle,WM_LBUTTONUP,0,0);
POSTMESSAGE(Self.Handle,274,61458,0);

3.MouseDown事件中加入:

ReleaseCapture;
Perform(WM_SYSCOMMAND, $F012, 0);

 

posted on 2016-07-16 08:30  酷瑞  阅读(341)  评论(0编辑  收藏  举报

导航