2.1.26.48 tree_get_project_folders_and_pages


Description

Generate a tree from the Project's folders and pages.

Syntax

bool tree_get_project_folders_and_pages( TreeNode & tr, DWORD dwPageTypeFilter = 0 )

Parameters

tr
[Output]TreeNode to receive the folders and pages
dwPageTypeFilter
[Input]filter options

Return

false if get no page

Examples

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);    
}

Remark

Generate a tree from the Project's folders and pages.

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

See Also

Header to Include

origin.h

Reference