unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
private
{ Private declarations }
procedure WMNCHITTEST(var MSG:TMessage);message WM_NCHITTEST;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.WMNCHITTEST(var MSG: TMessage);
begin
inherited;
if MSG.Result = HTCAPTION then MSG.Result := HTCLIENT;
end;
end.