- wxToolbookEvent event(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, m_windowId);
- return wxBookCtrlBase::DoSetSelection(n, flags, event);
+ return new wxToolbookEvent(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, m_windowId);
+}
+
+void wxToolbook::MakeChangedEvent(wxBookCtrlBaseEvent &event)
+{
+ event.SetEventType(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED);