Copy attribute from TreeNode trSrc to trDest
bool tree_node_copy_attribute( const TreeNode & trSrc, TreeNode & trDest, LPCSTR lpcszAttribute )
true if trSrc has given attribute and is copied to trDest
EX1
void tree_node_copy_attribute_ex1() { Tree tr; TreeNode trFirst = tr.AddNode("First"); TreeNode trSecond = tr.AddNode("Second"); trFirst.SetAttribute(STR_LABEL_ATTRIB, "All Nodes Label"); bool bRet = tree_node_copy_attribute(trFirst, trSecond, STR_LABEL_ATTRIB); string strLabel; trSecond.GetAttribute(STR_LABEL_ATTRIB, strLabel); out_str(strLabel); }
origin.h