X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4955899eb1b7d6abc198cbb8e88c5ac17449339..3caec1bb33d0b0a937b5653c068442e7fa3029bc:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index ed9240d235..98ae3305e0 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -243,6 +243,18 @@ void wxFrame::DoGetClientSize( { RECTL vRect; ::WinQueryWindowRect(GetHwnd(), &vRect); +#if wxUSE_STATUSBAR + if ( GetStatusBar() && GetStatusBar()->IsShown() ) + { + int nStatusX; + int nStatusY; + + GetStatusBar()->GetClientSize( &nStatusX + ,&nStatusY + ); + vRect.yBottom += nStatusY; + } +#endif // wxUSE_STATUSBAR if (pX) *pX = vRect.xRight - vRect.xLeft; if (pY) @@ -1180,12 +1192,12 @@ void wxFrame::PositionToolBar() } #endif // wxUSE_STATUSBAR - if ( GetToolBar() ) + if ( m_frameToolBar ) { int nToolbarWidth; int nToolbarHeight; - GetToolBar()->GetSize( &nToolbarWidth + m_frameToolBar->GetSize( &nToolbarWidth ,&nToolbarHeight );