Author: everaldo
Date: 2007-01-12 05:49:13 -0500 (Fri, 12 Jan 2007)
New Revision: 70910
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
* Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
to calculate menu bar size. Fixes #80290.
2007-01-11 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-12 10:24:09 UTC (rev 70909)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-12 10:49:13 UTC (rev 70910)
@@ -1,5 +1,10 @@
2007-01-11 Everaldo Canuto <[EMAIL PROTECTED]>
+ * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
+ to calculate menu bar size. Fixes #80290.
+
+2007-01-11 Everaldo Canuto <[EMAIL PROTECTED]>
+
* ThemeWin32Classic.cs: Fix position of menuitem check mark.
2007-01-11 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-01-12 10:24:09 UTC (rev 70909)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-01-12 10:49:13 UTC (rev 70910)
@@ -2046,7 +2046,7 @@
ncp =
(XplatUIWin32.NCCALCSIZE_PARAMS)Marshal.PtrToStructure(m.LParam,
typeof(XplatUIWin32.NCCALCSIZE_PARAMS));
// Adjust for menu
- ncp.rgrc1.top +=
ThemeEngine.Current.CalcMenuBarSize (DeviceContext, ActiveMenu, ncp.rgrc1.right
- ncp.rgrc1.left);
+ ncp.rgrc1.top +=
ThemeEngine.Current.CalcMenuBarSize (DeviceContext, ActiveMenu,
ClientSize.Width);
Marshal.StructureToPtr(ncp,
m.LParam, true);
}
DefWndProc(ref m);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches