protected override void WndProc( ref Message m)
{
const int WM_NCHITTEST = 0x0084 ;
const int HTCAPTION = 2 ;
const int HTLEFT = 10 ;
const int HTBOTTOMRIGHT = 17 ;
switch (m . Msg)
{
case WM_NCHITTEST:
base . WndProc( ref m);
if (( int )m . Result == HTCAPTION ||
(( int )m . Result >= HTLEFT && ( int )m . Result <= HTBOTTOMRIGHT))
m . Result = ( IntPtr ) 0 ;
return ;
}
base . WndProc( ref m);
}