]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/framuniv.cpp
compilation fix
[wxWidgets.git] / src / univ / framuniv.cpp
index 17e59adcafcc58febc7379f618d116b9a0786e9c..4ae3912a68946dc9357ef6cf2bffa62e49a75e7b 100644 (file)
@@ -18,7 +18,7 @@
 // ---------------------------------------------------------------------------
 
 #ifdef __GNUG__
-    #pragma implementation "framuniv.h"
+    #pragma implementation "univframe.h"
 #endif
 
 // For compilers that support precompilation, includes "wx.h".
@@ -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;
+}