]> git.saurik.com Git - wxWidgets.git/commitdiff
Use status full, not client, size to determine frame client size in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:30 +0000 (01:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:30 +0000 (01:22 +0000)
We need to account for the full size of status bar, including potential
borders, when calculating the client size of the frame containing it.

Closes #12697.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/frame.cpp

index 2313b03a3ca4847fdad61c1dc6ee219754e0ef6b..077b030d33fb094489f7af1adb2961216ed168b2 100644 (file)
@@ -295,7 +295,7 @@ void wxFrame::DoGetClientSize(int *x, int *y) const
         wxStatusBar *statbar = GetStatusBar();
         if ( statbar && statbar->IsShown() )
         {
-            *y -= statbar->GetClientSize().y;
+            *y -= statbar->GetSize().y;
         }
     }
 #endif // wxUSE_STATUSBAR