X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca65c0440a7163e4e37e48b1c4329709d722db47..c369d4f116d652a2d51dae88598135c2db3f14dd:/src/generic/listbkg.cpp?ds=inline diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index f0d5305697..2fcf9a8548 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -396,6 +396,7 @@ wxListbook::InsertPage(size_t n, page->Hide(); } + InvalidateBestSize(); return true; } @@ -410,6 +411,13 @@ wxWindow *wxListbook::DoRemovePage(size_t page) return win; } + +bool wxListbook::DeleteAllPages() +{ + m_list->DeleteAllItems(); + return wxBookCtrl::DeleteAllPages(); +} + // ---------------------------------------------------------------------------- // wxListbook events // ----------------------------------------------------------------------------