fixed client area handling for wxFrame/Univ

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-09-22 11:56:23 +00:00
parent 23645bfa01
commit a9152a05f8
2 changed files with 25 additions and 0 deletions

View File

@@ -103,6 +103,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))