X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64c38b4be828b7b18f7d51f80eb9848f1cccf40e..d8a7829312e4fa8e67950f68eafa5d507b4e9826:/include/wx/choicebk.h diff --git a/include/wx/choicebk.h b/include/wx/choicebk.h index 7f65e4216f..4daa5b28ff 100644 --- a/include/wx/choicebk.h +++ b/include/wx/choicebk.h @@ -21,8 +21,8 @@ class WXDLLIMPEXP_FWD_CORE wxChoice; -wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, wxBookCtrlEvent ) -wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, wxBookCtrlEvent ) +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, wxBookCtrlEvent ); +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, wxBookCtrlEvent ); // wxChoicebook flags #define wxCHB_DEFAULT wxBK_DEFAULT @@ -97,7 +97,7 @@ protected: void UpdateSelectedPage(size_t newsel) { m_selection = static_cast(newsel); - GetChoiceCtrl()->Select(newsel); + GetChoiceCtrl()->Select(m_selection); } wxBookCtrlEvent* CreatePageChangingEvent() const;