]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/choicebk.h
don't draw borders for bitmap buttons with wxBORDER_NONE style
[wxWidgets.git] / include / wx / choicebk.h
index 7f65e4216fa5306d7aeceea6890a423e5e72521c..4daa5b28fff19e04acedba7b88308396d177115c 100644 (file)
@@ -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<int>(newsel);
-        GetChoiceCtrl()->Select(newsel);
+        GetChoiceCtrl()->Select(m_selection);
     }
 
     wxBookCtrlEvent* CreatePageChangingEvent() const;