X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9d4df0e42c0afa1b13dc9bac85855821c6cd636..b09bda689c8525886d217a9b171b354391cd6d78:/src/univ/framuniv.cpp diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index 5beac71626..798ac4558d 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -55,7 +55,6 @@ bool wxFrame::Create(wxWindow *parent, long style, const wxString& name) { - m_renderer = NULL; return wxTopLevelWindow::Create(parent, id, title, pos, size, style, name); } @@ -103,6 +102,28 @@ wxPoint wxFrame::GetClientAreaOrigin() const return pt; } +void wxFrame::DoGetClientSize(int *width, int *height) const +{ + wxFrameBase::DoGetClientSize(width, height); +#if wxUSE_MENUS + if ( m_frameMenuBar && height ) + { + (*height) -= m_frameMenuBar->GetSize().y; + } +#endif // wxUSE_MENUS +} + +void wxFrame::DoSetClientSize(int width, int height) +{ +#if wxUSE_MENUS + if ( m_frameMenuBar ) + { + height += m_frameMenuBar->GetSize().y; + } +#endif // wxUSE_MENUS + wxFrameBase::DoSetClientSize(width, height); +} + bool wxFrame::Enable(bool enable) { if (!wxFrameBase::Enable(enable))