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.
Syntax
INT ListView_SetSelectionMark(
HWND hwnd,
INT i
);
Parameters
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.
Return value
Type: INT
Returns the previous selection mark, or -1 if there is no previous selection mark.
Remarks
The selection mark is the item index from which a multiple selection starts. This macro does not affect the selection state of the item.
Requirements
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 |