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