#region 控制无边框拉伸 private ResizeDirect _direct; private bool _resizeing; private Point _resizeStart; private Point _resizePos; private Size _resizeSize; const int WM_LBUTTONDOWN = 513; const int WM_MOUSEMOVE = 512; public bool PreFilterMessage(ref Message m) { i…