Copy TreeNode values from source TreeNode to destination TreeNode
int tree_copy_values( const TreeNode & trSrc, TreeNode & trDest, WORD wOptions = TREE_COPY_SKIP_HIDDEN | TREE_COPY_ATTRIB_ENABLE )
count of copied TreeNode
EX1
void tree_copy_values_ex1() { Tree trS; trS.Math.Score.dVal = 90.5; trS.Math.Bookname.strVal = "Math"; trS.Math.Bookname.Show = 0; Tree trD; trD.Math.Score.dVal = 100; trD.Math.Bookname.strVal = "Math 2"; trD.English.Score.dVal = 100; tree_copy_values(trS, trD); out_tree(trD); }
tree_copy_values_by_id
origin.h