拦截双击标题栏、移动窗体的系统消息

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

if 语句可替换成下面的十进制显示

if (m.Msg != 163 && m.Msg != 3 && m.WParam !=  (IntPtr)61548)

 

 

出处:https://zhidao.baidu.com/question/1116109957871462059.html

posted on 2019-02-21 12:16  jack_Meng  阅读(266)  评论(0编辑  收藏  举报

导航