]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/framuniv.cpp
fixed a design flaw in wxFontMapper that prevented automatic creation of wxConfig...
[wxWidgets.git] / src / univ / framuniv.cpp
index fdd0927bf699d5f5cc0f56691a2cc07ff6332b9e..4ae3912a68946dc9357ef6cf2bffa62e49a75e7b 100644 (file)
@@ -75,7 +75,7 @@ void wxFrame::OnSize(wxSizeEvent& event)
 {
 #if wxUSE_MENUS
     PositionMenuBar();
-#endif // wxUSE_WAVE
+#endif // wxUSE_MENUS
 
     event.Skip();
 }
@@ -92,7 +92,6 @@ void wxFrame::PositionMenuBar()
                                 GetClientSize().x, -1);
     }
 }
-
 #endif // wxUSE_MENUS
 
 wxPoint wxFrame::GetClientAreaOrigin() const
@@ -109,3 +108,13 @@ wxPoint wxFrame::GetClientAreaOrigin() const
     return pt;
 }
 
+bool wxFrame::Enable( bool enable )
+{
+    if (!wxFrameNative::Enable(enable))
+       return FALSE;
+#ifdef __WXMICROWIN__
+    if (m_frameMenuBar)
+        m_frameMenuBar->Enable(enable);
+#endif
+    return TRUE;
+}