Share via


ListView_SetSelectionMark (Windows Embedded CE 6.0)

1/6/2010

This macro sets the selection mark in a list-view control.

Syntax

INT ListView_SetSelectionMark(
  HWND hwndLV, 
  INT iIndex 
);

Parameters

  • hwndLV
    Handle to a list-view control.
  • iIndex
    Zero-based index of the list-view item to be selected.

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

Related message: LVM_SETSELECTIONMARK

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

List-View Controls Macros
LVM_SETSELECTIONMARK