Преглед изворни кода

* Hwnd.cs: The adjustments for the menu bar are made when it is
attached to the form.


svn path=/trunk/mcs/; revision=53366

Jackson Harper пре 20 година
родитељ
комит
dd14af8344

+ 5 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,8 @@
+2005-11-22  Jackson Harper  <[email protected]>
+
+	* Hwnd.cs: The adjustments for the menu bar are made when it is
+	attached to the form.
+
 2005-11-19  Jackson Harper  <[email protected]>
 
 	* XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT

+ 3 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs

@@ -181,6 +181,7 @@ namespace System.Windows.Forms {
 
 			rect = new Rectangle(0, 0, width, height);
 
+			/*
 			if (menu_handle != IntPtr.Zero) {
 				MenuAPI.MENU menu = MenuAPI.GetMenuFromID (menu_handle);
 				if (menu != null) {
@@ -190,7 +191,8 @@ namespace System.Windows.Forms {
 				} else
 					Console.WriteLine("Hwnd.GetClientRectangle: No MENU for menu_handle = {0}", menu_handle);
 			}
-
+			*/
+			
 			if (border_style == FormBorderStyle.Fixed3D) {
 				rect.X += 2;
 				rect.Y += 2;