You will need to trap the WM_MOVING message - fill the rect back to the
existing position,a nd the window will not be moved.

The alternative is to trap WM_NCHITTEST and call DefaultWindowsProc.  If the
result is HT_CAPTION, change it to something like HT_NOWHERE.  You will also
need to remove the SC_MOVE system menu item.

----- Original Message -----
From: "Rohit Gupta" <[EMAIL PROTECTED]>


> How do I stop a form from being moved ?
>
>  WM_GETMINMAXINFO used to work (or I fooled myself years
> ago).
>
> It seems to have no effect.
>
> Is there a windowstyle or something that can be used at
> windowcreate ?Regards
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to