C# winform 禁止窗体移动
时间:2016-06-22 21:45:24
收藏:0
阅读:549
#region 禁止窗体移动
public const int WM_SYSCOMMAND = 0x112;
public const int SC_MOVE = 0xF012;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_SYSCOMMAND)
{
if ((int)m.WParam == SC_MOVE)
return;
}
base.WndProc(ref m);
}
#endregion
原文:http://www.cnblogs.com/luxiaoyao/p/5608426.html
评论(0)