bgiAppendGizmoChildNode

Appends a child node to a parent node in a TreeView control. Takes parentNode (Int), text (String), and parentTreeview (Int). Returns new node ID (treeviewIDCount).

BGI GUI

Parameters & Returns

Parameters

parentNode Int
text String
parentTreeview Int

Returns

Int

Quick Summary

Appends a child node to a parent node in a TreeView control. Takes parentNode (Int), text (String), and parentTreeview (Int). Returns new node ID (treeviewIDCount).

Technical Exegesis...

Appends a child node to a parent node in a TreeView control. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Searches treeviewNodes vector for parentNode ID to get parent's HTREEITEM handle. Increments global treeviewIDCount for unique node ID. Creates TVINSERTSTRUCT with hParent=parent's HTREEITEM, hInsertAfter=TVI_LAST (append to end of children), mask=TVIF_TEXT|TVIF_PARAM, pszText=text, lParam=treeviewIDCount. Sends TVM_INSERTITEM message to create child node.

Example

Example.bam
; No example implemented yet