标签:
#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