several mac fixes (Mark Newsams patches)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-07-11 20:33:12 +00:00
parent aef94d6860
commit 9453cf2bd7
25 changed files with 1198 additions and 622 deletions

View File

@@ -315,7 +315,7 @@ void wxFrameMac::DoGetClientSize(int *x, int *y) const
wxWindow::DoGetClientSize( x , y ) ;
#if wxUSE_STATUSBAR
if ( GetStatusBar() )
if ( GetStatusBar() && y )
{
int statusX, statusY;
GetStatusBar()->GetClientSize(&statusX, &statusY);
@@ -324,8 +324,10 @@ void wxFrameMac::DoGetClientSize(int *x, int *y) const
#endif // wxUSE_STATUSBAR
wxPoint pt(GetClientAreaOrigin());
*y -= pt.y;
*x -= pt.x;
if ( y )
*y -= pt.y;
if ( x )
*x -= pt.x;
}
void wxFrameMac::DoSetClientSize(int clientwidth, int clientheight)