C#无边框拖动代码
protected override void WndProc(ref Message m) { if (m.Msg == 163 && this.ClientRectangle.Contains(this.PointToClient(new Point(m.LParam.ToInt32()))) && m.WParam.ToInt32() == 2) { m.WParam = (IntPtr)1; } base.WndProc(ref m); if (m.Msg == 132 && m.Result.ToInt32() == 1) { m.Result = (IntPtr)2; } }

 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号