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
listViewIDInt
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.
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. Row index can be used with bgiGetListViewItemText to read selected row data. List view was created with LVS_SINGLESEL style (single selection mode) - only one item can be selected at a time. Common pattern: get selected index, then loop through columns with bgiGetListViewItemText to read all column values for that row. Use for processing user selections, double-click handlers, or context menus.