ListView_SetSelectionMark macro

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

Syntax

void ListView_SetSelectionMark(
   hwnd,
   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

None

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

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h

See also

ListView_GetSelectionMark