Get a tree node and check if it is already present, if not, create it first
TreeNode tree_check_get_node_by_dataid( TreeNode & trParent, LPCSTR lpcszTag, int nDataID, LPCSTR lpcszLableAttrib = NULL, LPCSTR lpcszAttribVal = NULL )
found TreeNode, or returns created TreeNode if not found
EX1
void tree_check_get_node_by_dataid_ex1() { Tree tr; int nDataID = 0x0001; string strLabel = "Just a testing"; TreeNode trNode = tree_check_get_node_by_dataid(tr, "NewCreated", nDataID, STR_LABEL_ATTRIB, strLabel); out_tree(tr); }
origin.h