/// <summary> /// 处理窗体取消边框后的移动问题 /// </summary> /// <param name="form"></param> public void Init_Form_Move(Form form) { //释放当前线程中某个窗口捕获的光标 Init_Bean.ReleaseCapture(); //向Windows发送拖动窗体的消息 Init_Bean.SendMessage(form.Handle, Init_Bean.WM_SYSCOMMAND, Init_Bean.SC_MOVE + Init_Bean.HTCAPTION, 0); }
public Init_Method(Init_Bean init_Bean) { this.init_Bean = init_Bean; }
public Init(Init_Bean init_Bean) { InitializeComponent(); //管理对象赋值 this.init_Bean = init_Bean; }