]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/listbook.h
Fix for wxToolbook, allow oldSel == wxNOT_FOUND when changing to a
[wxWidgets.git] / include / wx / listbook.h
index b62da59d47ebe748eb41808172ccd529f22cd83b..056fc64bbc1c18da39c54b2e98202d44fb32492b 100644 (file)
@@ -85,14 +85,10 @@ protected:
     // return the page corresponding to the tab at the specified position
     virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
 
-    int DoSetSelection(size_t nPage, int flags = 0);
-
     void UpdateSelectedPage(size_t newsel);
 
-    void MakeChangedEvent(wxBookCtrlBaseEvent &event)
-    {
-        event.SetEventType(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED);
-    }
+    wxBookCtrlBaseEvent* CreatePageChangingEvent() const;
+    void MakeChangedEvent(wxBookCtrlBaseEvent &event);
 
     // event handlers
     void OnListSelected(wxListEvent& event);