Walk all tree nides and set all empty ones to be hidden
int tree_hide_empty_nodes( TreeNode tr, bool bRecursive = true, bool bRemoveShowAttrib = true )
number of the empty tree nodes
EX1
#include <GetNBox.h> void tree_hide_empty_nodes_ex1() { GETN_TREE(myTree) GETN_NUM(count, "Count", 100) GETN_ID(2) GETN_CHECK(check, "Print?", 0) GETN_ID(4) GETN_STR(printed, "Printed Document", "") GETN_ID(8) GetNBox(myTree); // myTree.printed is shown int nn = tree_hide_empty_nodes(myTree); GetNBox(myTree); // myTree.printed is hidden }
origin.h