From 4c200e68a5c405d995c01fb89384587cc7a7521c Mon Sep 17 00:00:00 2001 From: besh81 Date: Mon, 26 Feb 2018 15:45:31 +0100 Subject: [PATCH] Added listbox::clear_headers() and menubar::clear() Added listbox::clear_headers() to remove all the columns (included categories and items) from the listbox Added menubar::clear() to remove all the items from menubar --- source/gui/widgets/listbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index c6e47f8c..a47142b2 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -5328,6 +5328,7 @@ namespace nana { internal_scope_guard lock; auto & ess = _m_ess(); + ess.lister.erase(); ess.header.clear(); ess.update(); }