老
老屯
Unregistered / Unconfirmed
GUEST, unregistred user!
就这样结束了么,遗憾。<br><br>其实控制窗口不用鼠标移动很简单,就是前面已经说过的,在NCHITTEST上想变法。<br>只要屏蔽掉htCaption,以及边界就可以达到你想要的效果,并且能够保证系统菜单,按钮继续工作。<br><br> TForm1 = class(TForm)<br> private<br> { Private declarations }<br> procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST;<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.DFM}<br><br>{ TForm1 }<br><br>procedure TForm1.WMNCHitTest(var Message: TWMNCHitTest);<br>begin<br> inherited;<br> case Message.Result of<br> htCaption,<br> htBorder,<br> htTop,<br> htTopLeft,<br> htTopRight,<br> htLeft,<br> htRight,<br> htBottom,<br> htBottomLeft,<br> htBottomRight:<br> Message.Result := htNoWhere;<br> end;<br>end;<br>