X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98363307d3b0c8c4f3182b9a82d7f87ca06a1a82..fc4f1d5f6bc52ff1ec80cbd52acb2c6f657ec79c:/src/univ/framuniv.cpp diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index 4ae3912a68..6347d6252e 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -41,11 +41,7 @@ BEGIN_EVENT_TABLE(wxFrame, wxFrameNative) EVT_SIZE(wxFrame::OnSize) END_EVENT_TABLE() -#if defined(__WXMSW__) - IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxFrameMSW) -#elif defined(__WXGTK__) - IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxFrameGTK) -#endif +IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxWindow) // ---------------------------------------------------------------------------- // ctors @@ -88,10 +84,19 @@ void wxFrame::PositionMenuBar() { // the menubar is positioned above the client size, hence the negative // y coord - m_frameMenuBar->SetSize(0, -m_frameMenuBar->GetSize().y, - GetClientSize().x, -1); + wxCoord heightMbar = m_frameMenuBar->GetSize().y; + m_frameMenuBar->SetSize(0, + +// FIXME: why doesn't this work as expected in wxGTK?? +#ifdef __WXGTK__ + 0, +#else + -heightMbar, +#endif + GetClientSize().x, heightMbar); } } + #endif // wxUSE_MENUS wxPoint wxFrame::GetClientAreaOrigin() const