bgiInsertGizmoChildNode

Inserts a new child node before an existing child node in a TreeView. Takes parentNode (Int), childNode (Int), text (String), and parentTreeview (Int). Returns 1 on success, 0 on failure or if TreeView not found.

BGI GUI

Parameters & Returns

Parameters

parentNode Int
childNode Int
text String
parentTreeview Int

Returns

Int

Quick Summary

Inserts a new child node before an existing child node in a TreeView. Takes parentNode (Int), childNode (Int), text (String), and parentTreeview (Int). Returns 1 on success, 0 on failure or if TreeView not found.

Technical Exegesis...

Inserts a new child node before an existing child node in a TreeView. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Searches treeviewNodes vector for parentNode and childNode IDs to get their HTREEITEM handles. Increments global treeviewIDCount for new node ID. Calls InsertTreeViewItem helper function with parentHWND, hParentNode, hChildNode (insert before this), text, and treeviewIDCount.

Example

Example.bam
; No example implemented yet