Generate a tree from the Project's folders and pages.
bool tree_get_project_folders_and_pages( TreeNode & tr, DWORD dwPageTypeFilter = 0 )
false if get no page
EX1
//Make sure there are some folders and pages in the current project before running the codes. void tree_get_project_folders_and_pages_ex1() { Tree tr; bool bRet = tree_get_project_folders_and_pages(tr, 0); out_tree(tr); }
The generated tree will have a root node called "project".
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
origin.h