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
This commit is contained in:
Vadim Zeitlin 2010-11-22 01:22:30 +00:00
parent 426ebc992b
commit c22bbd087a

View 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