C# winform 禁止窗体移动
#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
奋斗就是每天很难,可是一年一年却越来越容易;
不奋斗就是每天很容易,可是一年一年却越来越难。