diff --git a/include/wx/listbook.h b/include/wx/listbook.h index 73244fc256..a912075502 100644 --- a/include/wx/listbook.h +++ b/include/wx/listbook.h @@ -109,6 +109,8 @@ public: // returns true if we have wxLB_TOP or wxLB_BOTTOM style bool IsVertical() const { return HasFlag(wxLB_BOTTOM | wxLB_TOP); } + virtual bool DeleteAllPages(); + protected: virtual wxWindow *DoRemovePage(size_t page); diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index c75120bd59..2fcf9a8548 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -411,6 +411,13 @@ wxWindow *wxListbook::DoRemovePage(size_t page) return win; } + +bool wxListbook::DeleteAllPages() +{ + m_list->DeleteAllItems(); + return wxBookCtrl::DeleteAllPages(); +} + // ---------------------------------------------------------------------------- // wxListbook events // ----------------------------------------------------------------------------