From: David Webster Date: Mon, 30 Apr 2001 13:52:11 +0000 (+0000) Subject: Support for proper sizeing for scrolling X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/51523f25d712e56f8cb423e0a44322337ecb7b72?ds=inline Support for proper sizeing for scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index ed9240d235..2921ea42dc 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)