protected override void WndProc(ref Message m)
{
//拦截双击标题栏、移动窗体的系统消息
if (m.Msg != 0xA3 && m.Msg != 0x0003 && m.WParam != (IntPtr)0xF012)
{
base.WndProc(ref m);
}
}
其中
m.Msg = 0xA3 -> 双击标题栏消息
m.Msg = 0x0003 && m.WParam = (IntPtr)0xF012 -> 移动窗体消息