摘要:
privateintWM_SYSCOMMAND=0x112;privatelongSC_MAXIMIZE=0xF030;privatelongSC_MINIMIZE=0xF020;privatelongSC_CLOSE=0xF060;protectedoverridevoidWndProc(refMessagem){if(m.Msg==WM_SYSCOMMAND){if(m.WParam.ToInt64()==SC_MAXIMIZE){//MessageBox.Show("MAXIMIZE");return;}if(m.WParam.ToInt64()==SC_MINIMI 阅读全文
摘要:
privatePointmouseOffset;privatevoidlabel1_MouseDown(objectsender,MouseEventArgse){mouseOffset=newPoint(-e.X,-e.Y);}privatevoidlabel1_MouseMove(objectsender,MouseEventArgse){if(e.Button==MouseButtons.Left){PointmousePos=Control.MousePosition;mousePos.Offset(mouseOffset.X,mouseOffset.Y);((Control)send 阅读全文