Support for proper sizeing for scrolling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -243,6 +243,18 @@ 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
|
||||
if (pX)
|
||||
*pX = vRect.xRight - vRect.xLeft;
|
||||
if (pY)
|
||||
|
Reference in New Issue
Block a user