c# winform窗体禁止移动更改大小

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

猜你喜欢

转载自blog.csdn.net/qq_24364529/article/details/79086835
今日推荐