height.
* MdiWindowManager.cs: Use the MaximizedMenu for calculating
height.
svn path=/trunk/mcs/; revision=57797
+2006-03-10 Jackson Harper <jackson@ximian.com>
+
+ * Form.cs: We need to use the ActiveMenu when calculating menu
+ height.
+ * MdiWindowManager.cs: Use the MaximizedMenu for calculating
+ height.
+
2006-03-10 Jackson Harper <jackson@ximian.com>
* MenuAPI.cs: Make this available elsewhere. I need it in some MDI
ncp = (XplatUIWin32.NCCALCSIZE_PARAMS)Marshal.PtrToStructure(m.LParam, typeof(XplatUIWin32.NCCALCSIZE_PARAMS));
// Adjust for menu
- ncp.rgrc1.top += ThemeEngine.Current.CalcMenuBarSize (DeviceContext, menu, ClientSize.Width);
+ ncp.rgrc1.top += ThemeEngine.Current.CalcMenuBarSize (DeviceContext, ActiveMenu, ClientSize.Width);
Marshal.StructureToPtr(ncp, m.LParam, true);
}
DefWndProc(ref m);
{
Form parent = (Form) mdi_container.Parent;
MainMenu res = new MainMenu ();
-
res.MenuItems.Add (icon_menu);
private void MeasureIconMenuItem (object sender, MeasureItemEventArgs me)
{
Form parent = (Form) mdi_container.Parent;
- int size = parent.Menu.Height;
+ int size = MaximizedMenu.Height;
me.ItemHeight = size;
me.ItemWidth = size + 2; // some padding
}