wxDELETE(m_clientWindow);
#if wxUSE_MENUS
- if (m_pMyMenuBar)
- {
- delete m_pMyMenuBar;
- m_pMyMenuBar = NULL;
- }
+ wxDELETE(m_pMyMenuBar);
RemoveWindowMenu(GetMenuBar());
#endif // wxUSE_MENUS
// the menu events should be given to the child as we show its menu bar
// as our own
const wxEventType eventType = event.GetEventType();
- if ( eventType == wxEVT_COMMAND_MENU_SELECTED ||
+ if ( eventType == wxEVT_MENU ||
eventType == wxEVT_UPDATE_UI )
{
// set the flag indicating that this event was forwarded to the
m_childHandler = m_currentChild;
wxON_BLOCK_EXIT_NULL(m_childHandler);
- if ( m_currentChild->ProcessEvent(event) )
+ if ( m_currentChild->ProcessWindowEvent(event) )
return true;
}
}
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);
}
// ----------------------------------------------------------------------------
m_notebook = new wxNotebook(this, wxID_ANY);
m_notebook->Connect
(
- wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
+ wxEVT_NOTEBOOK_PAGE_CHANGED,
wxNotebookEventHandler(
wxGenericMDIClientWindow::OnPageChanged),
NULL,