GetTree
Returns the Tree if available in the manager, referred to by name, lpcszName
BOOL GetTree( LPCSTR lpcszName, TreeNode & tr )
Returns non zero if successful, else zero
EX1
void Project_GetTree_Ex1() { string strTreeName = "MyTree"; Tree tr; tr.SetAttribute(STR_LABEL_ATTRIB, strTreeName); tr.node1.nVal = 1234; tr.node2.strVal = "abcd"; int nTree = Project.AddTree(strTreeName, tr); TreeNode trGet; BOOL bRet = Project.GetTree(strTreeName, trGet); if(!trGet.IsValid()) out_str("Error!"); else out_tree(trGet); }
EX2
// Returns Project Explorer-like structure in the tree. void Project_GetTree_Ex2() { Tree tr; Project.GetTree(NULL, tr); out_tree(tr); // Put a break point below to see more details in Variables window of Code Builder. int bp = 1; }
Project::AddTree, Project::DeleteTree
origin.h