X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4922c5f0dd5248dbf2b4e91dc1083d823a89cea0..85b6f1c431640d51535955da7d57383684fc0e27:/src/generic/choicbkg.cpp diff --git a/src/generic/choicbkg.cpp b/src/generic/choicbkg.cpp index ccc51e049d..aa24856ec2 100644 --- a/src/generic/choicbkg.cpp +++ b/src/generic/choicbkg.cpp @@ -48,7 +48,6 @@ // ---------------------------------------------------------------------------- IMPLEMENT_DYNAMIC_CLASS(wxChoicebook, wxBookCtrlBase) -IMPLEMENT_DYNAMIC_CLASS(wxChoicebookEvent, wxNotifyEvent) const wxEventType wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING = wxNewEventType(); const wxEventType wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED = wxNewEventType(); @@ -205,12 +204,12 @@ int wxChoicebook::GetSelection() const return m_selection; } -wxBookCtrlBaseEvent* wxChoicebook::CreatePageChangingEvent() const +wxBookCtrlEvent* wxChoicebook::CreatePageChangingEvent() const { - return new wxChoicebookEvent(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, m_windowId); + return new wxBookCtrlEvent(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, m_windowId); } -void wxChoicebook::MakeChangedEvent(wxBookCtrlBaseEvent &event) +void wxChoicebook::MakeChangedEvent(wxBookCtrlEvent &event) { event.SetEventType(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED); }