Update on Client Size determinations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -243,18 +243,13 @@ void wxFrame::DoGetClientSize(
|
|||||||
{
|
{
|
||||||
RECTL vRect;
|
RECTL vRect;
|
||||||
::WinQueryWindowRect(GetHwnd(), &vRect);
|
::WinQueryWindowRect(GetHwnd(), &vRect);
|
||||||
#if 0 // not needed for OS/2 wxUSE_STATUSBAR
|
|
||||||
if ( GetStatusBar() && GetStatusBar()->IsShown() )
|
|
||||||
{
|
|
||||||
int nStatusX;
|
|
||||||
int nStatusY;
|
|
||||||
|
|
||||||
GetStatusBar()->GetClientSize( &nStatusX
|
//
|
||||||
,&nStatusY
|
// No need to use statusbar code as in WIN32 as the FORMATFRAME
|
||||||
);
|
// window procedure ensures PM knows about the new frame client
|
||||||
vRect.yBottom += nStatusY;
|
// size internally. A ::WinQueryWindowRect is all that is needed!
|
||||||
}
|
//
|
||||||
#endif // wxUSE_STATUSBAR
|
|
||||||
if (pX)
|
if (pX)
|
||||||
*pX = vRect.xRight - vRect.xLeft;
|
*pX = vRect.xRight - vRect.xLeft;
|
||||||
if (pY)
|
if (pY)
|
||||||
|
Reference in New Issue
Block a user