bgiGetSelectedListViewItem

Gets the row index of the currently selected item. Takes listViewID (Int). Returns selected row index on success, -1 if no selection or list view not found.

BGI GUI

Parameters & Returns

Parameters

listViewID Int

Returns

Int

Quick Summary

Gets the row index of the currently selected item. Takes listViewID (Int). Returns selected row index on success, -1 if no selection or list view not found.

Technical Exegesis...

Gets the 0-based row index of the currently selected item in a list view control. Searches gizmoMap for the list view ID. Calls ListView_GetNextItem with starting index -1 (search from beginning) and LVNI_SELECTED flag (find selected item). Returns selected row index on success, -1 if no selection or list view not found.

This function returns which row is currently selected by the user. Returns -1 when no item is selected or list view is empty.

Example

Example.bam
; No example implemented yet