wxFrame::~wxFrame()
{
- m_isBeingDeleted = true;
+ SendDestroyEvent();
+
DeleteAllBars();
}
return false;
#if wxUSE_MENUS
- if ( m_frameMenuBar && m_frameMenuBar == wxMenuBar::MacGetInstalledMenuBar() )
+ // we should always enable/disable the menubar, even if we are not current, otherwise
+ // we might miss some state change later (happened eg in the docview sample after PrintPreview)
+ if ( m_frameMenuBar /*&& m_frameMenuBar == wxMenuBar::MacGetInstalledMenuBar()*/)
{
int iMaxMenu = m_frameMenuBar->GetMenuCount();
for ( int i = 0 ; i < iMaxMenu ; ++ i )
wxSysColourChangedEvent event2;
event2.SetEventObject( m_frameStatusBar );
- m_frameStatusBar->ProcessEvent(event2);
+ m_frameStatusBar->GetEventHandler()->ProcessEvent(event2);
}
#endif // wxUSE_STATUSBAR
}
}
-void wxFrame::HandleResized( long timestamp )
+void wxFrame::HandleResized( double timestampsec )
{
// according to the other ports we handle this within the OS level
// resize event, not within a wxSizeEvent
PositionBars();
- wxNonOwnedWindow::HandleResized( timestamp );
+ wxNonOwnedWindow::HandleResized( timestampsec );
}
#if wxUSE_MENUS
int cw, ch;
GetSize( &cw , &ch ) ;
-
+
int statusX = 0 ;
int statusY = 0 ;