bgiClearAllGizmoNodes

Deletes all nodes from a TreeView control. Takes parentTreeview (Int). Returns 1 on success, -1 if TreeView not found or deletion failed.

BGI GUI

Parameters & Returns

Parameters

parentTreeview Int

Returns

Int

Quick Summary

Deletes all nodes from a TreeView control. Takes parentTreeview (Int). Returns 1 on success, -1 if TreeView not found or deletion failed.

Technical Exegesis...

Deletes all nodes from a TreeView control. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Calls TreeView_DeleteAllItems macro to delete all nodes from the TreeView. If successful, iterates through treeviewNodes vector and erases all entries where parentHWND matches the TreeView HWND. Returns 1 on success, -1 if TreeView not found or deletion failed.

This function clears the entire TreeView - all root nodes and all nested children are removed.

Example

Example.bam
; No example implemented yet