]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/toolbook.h
destroy m_impl even if an exception is thrown from the main loop
[wxWidgets.git] / include / wx / toolbook.h
index 27e3b28dba43914b9dec23825d1c7f1e12166dbe..f829b796b4c579c8fa6ef8d418c9cc23d316c2c6 100644 (file)
@@ -101,13 +101,10 @@ protected:
     void OnSize(wxSizeEvent& event);
     void OnIdle(wxIdleEvent& event);
 
-    int DoSetSelection(size_t nPage, int flags = 0);
     void UpdateSelectedPage(size_t newsel);
-    
-    void MakeChangedEvent(wxBookCtrlBaseEvent &event)
-    {
-        event.SetEventType(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED);
-    }
+
+    wxBookCtrlBaseEvent* CreatePageChangingEvent() const;
+    void MakeChangedEvent(wxBookCtrlBaseEvent &event);
 
     // the currently selected page or wxNOT_FOUND if none
     int m_selection;