X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71908213057690d5452f72b2b9c8e62b53357170..23a46cb4f997248321db3d257868f8e72d74d1f3:/src/univ/framuniv.cpp diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index 17e59adcaf..4ae3912a68 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -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; +}