This message sets the selection mark in a list view control.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 2.0 and later |
Related macro: | ListView_SetSelectionMark |
Syntax
LVM_SETSELECTIONMARK wParam = 0;
lParam = (LPARAM)(INT) iIndex;
Parameters
iIndex
Zero-based index of the new selection mark
The selection mark is the item index from which a multiple selection starts. This message does not affect the selection state of the item.
Return Values
Returns the previous selection mark, or –1 if there is no previous selection mark.