X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a570e8f8febd7213e789647478298293df4519db..8cbc59fe84f046685b873cf58f6c56debe59de1c:/src/common/nbkbase.cpp diff --git a/src/common/nbkbase.cpp b/src/common/nbkbase.cpp index ec391bb57f..e12ba34a90 100644 --- a/src/common/nbkbase.cpp +++ b/src/common/nbkbase.cpp @@ -35,6 +35,9 @@ // implementation // ============================================================================ +wxDEFINE_EVENT( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxBookCtrlEvent ); +wxDEFINE_EVENT( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, wxBookCtrlEvent ); + // ---------------------------------------------------------------------------- // geometry // ---------------------------------------------------------------------------- @@ -65,7 +68,7 @@ wxSize wxNotebookBase::CalcSizeFromPage(const wxSize& sizePage) const bool wxNotebookBase::SendPageChangingEvent(int nPage) { - wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, GetId()); + wxBookCtrlEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, GetId()); event.SetSelection(nPage); event.SetOldSelection(GetSelection()); event.SetEventObject(this); @@ -74,7 +77,7 @@ bool wxNotebookBase::SendPageChangingEvent(int nPage) void wxNotebookBase::SendPageChangedEvent(int nPageOld, int nPageNew) { - wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, GetId()); + wxBookCtrlEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, GetId()); event.SetSelection(nPageNew == -1 ? GetSelection() : nPageNew); event.SetOldSelection(nPageOld); event.SetEventObject(this);