protected
override
void WndProc(
ref Message m)
{
base.WndProc( ref m);
if(m.Msg == 0x84 && m.Result == (IntPtr) 2) // 不让拖动标题栏
{
m.Result = (IntPtr) 1;
}
if (m.Msg == 0xA3) // 双击标题栏无反应
{
m.WParam = System.IntPtr.Zero;
}
}
{
base.WndProc( ref m);
if(m.Msg == 0x84 && m.Result == (IntPtr) 2) // 不让拖动标题栏
{
m.Result = (IntPtr) 1;
}
if (m.Msg == 0xA3) // 双击标题栏无反应
{
m.WParam = System.IntPtr.Zero;
}
}