}
}
-void wxFrameMac::SetMenuBar(wxMenuBar *menuBar)
-{
- if (!menuBar)
- {
- return;
- }
-
- m_frameMenuBar = menuBar;
-// m_frameMenuBar->MacInstallMenuBar() ;
- m_frameMenuBar->Attach((wxFrame *)this);
-}
-
-
// Responds to colour changes, and passes event on to children.
void wxFrameMac::OnSysColourChanged(wxSysColourChangedEvent& event)
{
wxWindow::DoGetClientSize( x , y ) ;
#if wxUSE_STATUSBAR
- if ( GetStatusBar() )
+ if ( GetStatusBar() && y )
{
int statusX, statusY;
GetStatusBar()->GetClientSize(&statusX, &statusY);
#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)