bgiSelectedGizmoNode

Returns the ID of the currently selected node in a TreeView control. Takes parentTreeview (Int). Returns the item's lParam value (which stores the node ID).

BGI GUI

Parameters & Returns

Parameters

parentTreeview Int

Returns

Int

Quick Summary

Returns the ID of the currently selected node in a TreeView control. Takes parentTreeview (Int). Returns the item's lParam value (which stores the node ID).

Technical Exegesis...

Returns the ID of the currently selected node in a TreeView control. Searches gizmoMap for parentTreeview ID to get TreeView HWND. Calls TreeView_GetSelection macro to get the selected node's HTREEITEM. Creates TVITEM structure with hItem=selectedNode and mask=TVIF_PARAM. Calls TreeView_GetItem to retrieve the item data. Returns the item's lParam value (which stores the node ID). Returns 0 if no item selected or TreeView_GetItem fails. Returns -1 if TreeView not found.

Example

Example.bam
; No example implemented yet