procedure WMNcHitTest(var Message: TWMNcHitText);procedure TForm1.WMNcHitTest(var Message: TWMNcHitTest);
begin
inherited;
if Message.Result = htCaption then
Message.Result := htClient;
end;
begin
inherited;
if Message.Result = htCaption then
Message.Result := htClient;
end;
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
Perform(WM_SysCommand, $f012, 0);
end;