Removed lots of OnClose functions; doc'ed OnCloseWindow better;
MM_... -> wxMM_... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -782,23 +782,12 @@ void wxFrame::OnActivate(wxActivateEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
// The default implementation for the close window event - calls
|
||||
// The default implementation for the close window event.
|
||||
// OnClose for backward compatibility.
|
||||
|
||||
void wxFrame::OnCloseWindow(wxCloseEvent& event)
|
||||
{
|
||||
// Compatibility
|
||||
if ( GetEventHandler()->OnClose() || !event.CanVeto())
|
||||
{
|
||||
this->Destroy();
|
||||
}
|
||||
else
|
||||
event.Veto(TRUE);
|
||||
}
|
||||
|
||||
bool wxFrame::OnClose()
|
||||
{
|
||||
return TRUE;
|
||||
this->Destroy();
|
||||
}
|
||||
|
||||
// Destroy the window (delayed, if a managed window)
|
||||
|
Reference in New Issue
Block a user