private void WmNcCalcSize (ref Message m)
{
XplatUIWin32.NCCALCSIZE_PARAMS ncp;
if ((ActiveMenu != null) && (m.WParam == (IntPtr)1)) {
ncp = (XplatUIWin32.NCCALCSIZE_PARAMS)Marshal.PtrToStructure (m.LParam, typeof (XplatUIWin32.NCCALCSIZE_PARAMS));
// Adjust for menu
ncp.rgrc1.top += ThemeEngine.Current.CalcMenuBarSize (DeviceContext, ActiveMenu, ClientSize.Width);
Marshal.StructureToPtr (ncp, m.LParam, true);
}
DefWndProc (ref m);
}