protected internal virtual void OnNonClientMouseUp(NonClientMouseEventArgs e) { var ev = NonClientMouseUp; if (ev != null) { ev(this, e); } }
void _formChrome_NonClientMouseUp(object sender, NonClientMouseEventArgs e) { if (!CaptureStart.HasValue) { return; } ProcessMouseUp(); }
private void WmNCLButtonUp(ref Message msg) { var pt = PointToClient(new Point(msg.LParam.ToInt32())); var args = new NonClientMouseEventArgs( MouseButtons.Left, 1, pt.X, pt.Y, 0, msg.WParam.ToInt32() ); _chrome.OnNonClientMouseUp(args); if (!args.Handled) { base.WndProc(ref msg); } msg.Result = (IntPtr)1; }
void _formChrome_NonClientMouseDown(object sender, NonClientMouseEventArgs e) { var state = new ButtonStates(this); if (state.OverButton != ChromeButton.None || state.OverExtraButton != null) { _formChrome.BeginUpdate(); SetOverButton(ChromeButton.None); SetOverButton(null); SetDownButton(state.OverButton); SetDownButton(state.OverExtraButton); CaptureStart = e.Location; Form.Capture = true; _formChrome.EndUpdate(); } }
protected internal virtual void OnNonClientMouseUp(NonClientMouseEventArgs e) { var ev = NonClientMouseUp; if (ev != null) ev(this, e); }
private void WmNCLButtonUp(ref Message msg) { var pt = PointToClient(new Point(msg.LParam.ToInt32())); var args = new NonClientMouseEventArgs( MouseButtons.Left, 1, pt.X, pt.Y, 0, msg.WParam.ToInt32() ); _chrome.OnNonClientMouseUp(args); if (!args.Handled) base.WndProc(ref msg); msg.Result = (IntPtr)1; }
void _formChrome_NonClientMouseUp(object sender, NonClientMouseEventArgs e) { if (!CaptureStart.HasValue) return; ProcessMouseUp(); }
void _formChrome_NonClientMouseDown(object sender, NonClientMouseEventArgs e) { var state = new ButtonStates(this); if (state.OverButton != ChromeButton.None) { SetOverButton(ChromeButton.None); SetDownButton(state.OverButton); CaptureStart = e.Location; Form.Capture = true; FormChrome.PaintNonClientArea(); } }