From 9f366ab008b8d96183da682dbe9e886815629739 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 13 Feb 2017 07:21:10 +0800 Subject: [PATCH] new treebox::item_proxy::clear() method --- source/gui/widgets/treebox.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/gui/widgets/treebox.cpp b/source/gui/widgets/treebox.cpp index fc03ddc1..c1eefb44 100644 --- a/source/gui/widgets/treebox.cpp +++ b/source/gui/widgets/treebox.cpp @@ -870,6 +870,16 @@ namespace nana return *this; } + item_proxy& item_proxy::clear() + { + if (node_) + { + trigger_->impl()->attr.tree_cont.clear(node_); + trigger_->draw(); + } + return *this; + } + bool item_proxy::expanded() const { return (node_ && node_->value.second.expanded);