]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listbkg.cpp
Ensure that the pen and bush are properly initialized
[wxWidgets.git] / src / generic / listbkg.cpp
index 9f725353c00dd7678be1182b8e62b7473654255a..a9498bdf3cc9d1d71466dcdc53c2bb83d35d63dd 100644 (file)
@@ -274,12 +274,17 @@ int wxListbook::GetSelection() const
     return m_selection;
 }
 
-int wxListbook::DoSetSelection(size_t n, int flags)
+wxBookCtrlBaseEvent* wxListbook::CreatePageChangingEvent() const
 {
-    wxListbookEvent event(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, m_windowId);
-    return wxBookCtrlBase::DoSetSelection(n, flags, event);
+    return new wxListbookEvent(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, m_windowId);
 }
 
+void wxListbook::MakeChangedEvent(wxBookCtrlBaseEvent &event)
+{
+    event.SetEventType(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED);
+}
+
+
 // ----------------------------------------------------------------------------
 // adding/removing the pages
 // ----------------------------------------------------------------------------