Generate a tree from the given folder's folders and pages and add to the parent.
int tree_get_folders_and_pages( Folder & fldFolder, TreeNode & trParent, TreeNode & trNewFolder, DWORD dwPageTypeFilter = 0 )
- [input] Folder will add to trParent.
- [Output]TreeNode to receive the folders and pages
- [Output]TreeNode to receive the up-to-date folders and pages
- [Input]filter options
return -1 if false, else return the folder's position of the parent treenode
//Make sure there are some folders and pages in the current project before running the codes.
fldRoot = Application.RootFolder;
int nRet = tree_get_folders_and_pages( fldRoot,tr,trNew,0);
Generate a tree from the given folder's folders and pages and add to the parent .
Folders will have tagName enumerated as Folder1, Folder2 etc.
Pages will have tagName enumerated as Page1, Page2 etc.
Each folder and page will have STR_LABEL_ATTRIB for the display name,
folders will have STR_PATH_ATTRIB for the full folder path and pages will have STR_NAME_ATTRIB for the LT name
header to Include