bgiAttachGizmoRootNode

Creates and attaches a root node to a TreeView control. Takes text (String) and parentTreeview (Int). Returns the new node ID (treeviewIDCount).

BGI GUI

Parameters & Returns

Parameters

text String
parentTreeview Int

Returns

Int

Quick Summary

Creates and attaches a root node to a TreeView control. Takes text (String) and parentTreeview (Int). Returns the new node ID (treeviewIDCount).

Technical Exegesis...

Creates and attaches a root node to a TreeView control. Searches gizmoMap for the parentTreeview ID to get the TreeView HWND. Increments global treeviewIDCount for unique node ID. Creates TVINSERTSTRUCT with hParent=TVI_ROOT (root level), hInsertAfter=TVI_FIRST (insert at top), mask=TVIF_TEXT|TVIF_PARAM, pszText=text, lParam=treeviewIDCount. Sends TVM_INSERTITEM message to create the node. Creates CTreeViewNode structure with id, hTreeViewNode handle, parentHWND, parentWinID, and text.

Example

Example.bam
; No example implemented yet