private void WmNcLButtonDown (ref Message m)
{
if (XplatUI.IsEnabled (Handle) && ActiveMenu != null) {
ActiveMenu.OnMouseDown (this, new MouseEventArgs (FromParamToMouseButtons ((int)m.WParam.ToInt32 ()), mouse_clicks, Control.MousePosition.X, Control.MousePosition.Y, 0));
}
if (ActiveMaximizedMdiChild != null && ActiveMenu != null) {
if (ActiveMaximizedMdiChild.HandleMenuMouseDown (ActiveMenu,
LowOrder ((int)m.LParam.ToInt32 ()),
HighOrder ((int)m.LParam.ToInt32 ()))) {
// Don't let base process this message, otherwise we won't
// get a WM_NCLBUTTONUP.
return;
}
}
base.WndProc (ref m);
}