]> git.saurik.com Git - wxWidgets.git/commitdiff
Support for proper sizeing for scrolling
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 30 Apr 2001 13:52:11 +0000 (13:52 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 30 Apr 2001 13:52:11 +0000 (13:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/frame.cpp

index ed9240d235103052012711467a2ad7379184bdde..2921ea42dccf18665eccd7a40fe319f3ea9d88fa 100644 (file)
@@ -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)