WinXListView_GetSelection


cItems = WinXListView_GetSelection (hLV, @iItems[])

Retrieves the indicies of all the selected items in a listview control

Parameter Description
hLV The handle to the listview control to get the selection from
@iItems[] The array to place the indicies of the selected items in

Returns

The number of selected items

Remarks

The array iItems[] is automatically dimensioned and filled with the indicies of all the selected items. Beware that there may not be any selected items, so if the function returns 0 then iItems will be the empty array.

Examples

'Get the selection from some list view control
cItems = WinXListView_GetSelection (hLV, @iItems[])

Related Links

List View Controls
WinXAddListView
WinXListView_SetSelection
WinXListView_GetItemText
WinXListView_GetItemFromPoint