Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the selection mark in a list-view control. You can use this macro or send the LVM_SETSELECTIONMARK message explicitly.
INT ListView_SetSelectionMark(
HWND hwnd,
INT i
);
hwnd
Type: HWND
A handle to a list-view control.
i
Type: INT
the zero-based index of the list-view item to be selected.
Type: INT
Returns the previous selection mark, or -1 if there is no previous selection mark.
The selection mark is the item index from which a multiple selection starts. This macro does not affect the selection state of the item.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |