Uses
  Windows;type
  TForm1 = class(TForm)
  protected
    procedure WMNCHitTest(var M: TWMNCHitTest); message wm_NCHitTest;
  end;var
  Form1: TForm1;implementationprocedure TForm1.WMNCHitTest(var M: TWMNCHitTest);
begin
  inherited
  if  M.Result = htClient then
    M.Result := htCaption;
end;