X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3507dd8517e922f499cddc30693dcb284815c0a..e6ba38871f6cc5c02391c04e37e481d0428cef3f:/src/generic/toolbkg.cpp diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 1693b3cfe2..969960b988 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -44,7 +44,6 @@ // ---------------------------------------------------------------------------- IMPLEMENT_DYNAMIC_CLASS(wxToolbook, wxBookCtrlBase) -IMPLEMENT_DYNAMIC_CLASS(wxToolbookEvent, wxNotifyEvent) const wxEventType wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING = wxNewEventType(); const wxEventType wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED = wxNewEventType(); @@ -247,12 +246,12 @@ int wxToolbook::GetSelection() const return m_selection; } -wxBookCtrlBaseEvent* wxToolbook::CreatePageChangingEvent() const +wxBookCtrlEvent* wxToolbook::CreatePageChangingEvent() const { - return new wxToolbookEvent(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, m_windowId); + return new wxBookCtrlEvent(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, m_windowId); } -void wxToolbook::MakeChangedEvent(wxBookCtrlBaseEvent &event) +void wxToolbook::MakeChangedEvent(wxBookCtrlEvent &event) { event.SetEventType(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED); }