bgiDeleteGizmoSelectedChildNode

Deletes the currently selected node and all its children from a TreeView. Takes parentTreeview (Int). Returns 1 on success, 0 if no selection or TreeView not found.

BGI GUI

Parameters & Returns

Parameters

parentTreeview Int

Returns

Int

Quick Summary

Deletes the currently selected node and all its children from a TreeView. Takes parentTreeview (Int). Returns 1 on success, 0 if no selection or TreeView not found.

Technical Exegesis...

Deletes the currently selected node and all its children from a TreeView. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Gets currently selected node with TreeView_GetSelection macro. Creates TVITEM with mask=TVIF_PARAM to retrieve node's lParam (node ID). Calls GetAllChildNodes helper function to recursively get all child HTREEITEMs. Iterates through child nodes: for each child, gets TVITEM.lParam (child ID) and searches treeviewNodes vector to erase matching entries.

Example

Example.bam
; No example implemented yet