X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c84ee88f6f015f5c5aa4f00b095191566fee9ab..36202885d48e85cc2012f5595ec1dfe00991e886:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 98ae3305e0..dbc1e6be98 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -243,18 +243,13 @@ 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 + // + // No need to use statusbar code as in WIN32 as the FORMATFRAME + // window procedure ensures PM knows about the new frame client + // size internally. A ::WinQueryWindowRect is all that is needed! + // + if (pX) *pX = vRect.xRight - vRect.xLeft; if (pY)