int the function ProUITreeNodeAdd you have to define the node type. (Last parameter).
In the resource filetrTREE.TreeNodeTypeNames, trTREE.TreeNodeTypeExpandedImages, TreeNodeTypeCollapsedImages must have the same order. Same is with TreeNodeTypePrefixs, TreeNodeTypeAppends, and so on.
err = ProUITreeNodeAdd(m_pView->GetDlgNamePtr(), "trTREE", "Element 2", L"Element 2", "ROOT", "PRO_MDL_DRAWING");
Iam new to UI creation in Pro/Toolikit. Do anyone has any example on UI Tree and UI table. I need to populate assembly heirarchy with UI tree having check boxes so that required components can be selected. Can anyone help with a sample code