Returns the total number of nodes in a TreeView control.
Takes parentTreeview (Int).
Returns the total count of all nodes (roots + all nested children).
BGI GUI
Parameters & Returns
Parameters
parentTreeviewInt
Returns
Int
Quick Summary
Returns the total number of nodes in a TreeView control.
Takes parentTreeview (Int).
Returns the total count of all nodes (roots + all nested children).
Technical Exegesis...
Returns the total number of nodes in a TreeView control. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Calls TreeView_GetCount macro with the TreeView HWND. Returns the total count of all nodes (roots + all nested children). Returns -1 if TreeView not found.
This function counts all nodes in the entire tree, including root nodes and all nested children at any depth. TreeView_GetCount is a Windows Common Controls macro that wraps the TVM_GETCOUNT message.
Returns the total number of nodes in a TreeView control. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Calls TreeView_GetCount macro with the TreeView HWND. Returns the total count of all nodes (roots + all nested children). Returns -1 if TreeView not found.
This function counts all nodes in the entire tree, including root nodes and all nested children at any depth. TreeView_GetCount is a Windows Common Controls macro that wraps the TVM_GETCOUNT message. The count includes both visible and collapsed (hidden) nodes. Use for validating tree population, checking if tree is empty, displaying node counts, or sizing allocations. Returns -1 only when TreeView ID is invalid - empty trees return 0.