Expand Minimize

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


INT ListView_SetSelectionMark(
  HWND hwndLV,
  INT iIndex
);

Parameters

hwndLV

Type: HWND

A handle to a list-view control.

iIndex

Type: INT

the 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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

See also

ListView_GetSelectionMark

 

 

Community Additions

ADD
Show:
© 2014 Microsoft