Build fix from Francois
authorMiguel de Icaza <miguel@gnome.org>
Mon, 25 Nov 2002 00:18:09 +0000 (00:18 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 25 Nov 2002 00:18:09 +0000 (00:18 -0000)
svn path=/trunk/mcs/; revision=9177

mcs/class/System.Windows.Forms/System.Windows.Forms/Menu.cs
mcs/class/System.Windows.Forms/System.Windows.Forms/NativeWindow.cs

index 4e9f11da8185175fb1ab32d15ae6b72ca436906a..34cdf5e2f34367773227cf5923e7899f9546925b 100644 (file)
@@ -154,9 +154,9 @@ namespace System.Windows.Forms  {
                        // FIXME: Pay attention, do not assign an id to a "stranger"
                        // If reusing IDs, get one from array first
                        if ( mi.MenuID_ == INVALID_MENU_ID) {
-                               mi.MenuID_ = MenuIDs_++;
+                               mi.MenuID_ = (uint) MenuIDs_++;
                        }
-                       return  (uint)mi.MenuID;
+                       return  (uint) mi.MenuID_;
                }
 
                //inherited
index 808b1752e4036898cc4beefe39d6b64be6de62b8..e7a13cca1a476fa1e855169f36d4b358fd2bce37 100644 (file)
@@ -66,11 +66,11 @@ namespace System.Windows.Forms {
 
                        if (!registeredClass) {
                                Win32.WndProc wp = new Win32.WndProc (WndProc);
-                               Win32.WNDCLASS wndClass = new Win32.WNDCLASS();
+                               WNDCLASS wndClass = new WNDCLASS();
 
-                               wndClass.style = (int) (Win32.CS_OWNDC |
-                                                       Win32.CS_VREDRAW |
-                                                       Win32.CS_HREDRAW);
+                               wndClass.style = (int) (CS_.CS_OWNDC |
+                                                       CS_.CS_VREDRAW |
+                                                       CS_.CS_HREDRAW);
                                wndClass.lpfnWndProc = wp;
                                wndClass.cbClsExtra = 0;
                                wndClass.cbWndExtra = 0;
@@ -81,7 +81,7 @@ namespace System.Windows.Forms {
                                wndClass.lpszMenuName = "";
                                wndClass.lpszClassName = "mono_native_window";
 
-                               if (Win32.RegisterClassA(wndClass) != 0) {
+                               if (Win32.RegisterClassA(ref wndClass) != 0) {
                                        registeredClass = true;
                                } else {
                                        windowHandle = (IntPtr)0;
@@ -190,7 +190,7 @@ namespace System.Windows.Forms {
 
                protected virtual void WndProc (ref Message m) 
                {
-                       if (m.Msg == Win32.WM_CREATE)
+                       if (m.Msg == (int) Msg.WM_CREATE)
                                Console.WriteLine ("NW WndProc WM_CREATE");
                        DefWndProc (ref m);
                }
@@ -219,11 +219,11 @@ namespace System.Windows.Forms {
                        message.LParam = lParam;
                        message.Result = (IntPtr) 0;
 
-                       if (msg == Win32.WM_CREATE)
+                       if (msg == (int) Msg.WM_CREATE)
                                Console.WriteLine ("WM_CREATE (static)");
 
                        if (window != null) {
-                       if (msg == Win32.WM_CREATE)
+                       if (msg == (int) Msg.WM_CREATE)
                                Console.WriteLine ("WM_CREATE (static != null)");
                                window.WndProc(ref message);
                        } else {