bgiCountGizmoNodes

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

parentTreeview Int

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.

Example

Example.bam
; No example implemented yet