unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;<br><br>type<br> TForm1 = class(TForm)<br> private<br> procedure WMNCHitTest(var m:TWMNCHitTest);message wm_NCHitTest;<br> { Private declarations }<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.DFM}<br>procedure TForm1.WMNCHitTest(var m:TWMNCHitTest);<br>begin<br> inherited;<br> if m.Result=htClient then<br> m.Result:=htCaption;<br>end;<br><br>end.<br>