From: Vadim Zeitlin Date: Mon, 22 Nov 2010 01:22:30 +0000 (+0000) Subject: Use status full, not client, size to determine frame client size in wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c22bbd087aa273141e0e1e3c69e2a42a0e633f75 Use status full, not client, size to determine frame client size in wxMSW. 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 --- diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 2313b03a3c..077b030d33 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -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