wxDELETE(m_clientWindow);
#if wxUSE_MENUS
- if (m_pMyMenuBar)
- {
- delete m_pMyMenuBar;
- m_pMyMenuBar = NULL;
- }
+ wxDELETE(m_pMyMenuBar);
RemoveWindowMenu(GetMenuBar());
#endif // wxUSE_MENUS
delete this;
}
-bool wxGenericMDIChildFrame::TryParent(wxEvent& event)
+bool wxGenericMDIChildFrame::TryAfter(wxEvent& event)
{
// we shouldn't propagate the event to the parent if we received it from it
// in the first place
if ( parent && parent->WXIsInsideChildHandler(this) )
return false;
- return wxTDIChildFrame::TryParent(event);
+ return wxTDIChildFrame::TryAfter(event);
}
// ----------------------------------------------------------------------------