set the attributes to all nodes in the given tree
void tree_set_attribute_to_all_nodes( TreeNode & tr, LPCSTR lpcszAttrib, LPCSTR lpcszAttribVal, bool b1stLevelChildrenOnly = false, bool bBranchOnly = false )
EX1
void tree_set_attribute_to_all_nodes_ex1() { Tree tr; TreeNode trFirst = tr.AddNode("First"); TreeNode trSecond = tr.AddNode("Second"); out_tree(tr); tree_set_attribute_to_all_nodes(tr, STR_LABEL_ATTRIB, "All Node Labels"); out_tree(tr); }
tree_remove_attribute
origin.h