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);