LVM_SETSELECTIONMARK message

Sets the selection mark in a list-view control. You can send this message explicitly or use the ListView_SetSelectionMark macro.

Parameters

wParam
Must be zero.
lParam

Zero-based index of the new selection mark. If set to -1, the selection mark is removed.

Return value

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 message does not affect the selection state of the item.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

LVM_GETSELECTIONMARK

 

 

Show: