Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
List View
Macros
 ListView_SetSelectionMark Macro
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
A handle to a list-view control.
iIndex
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.

Macro Information

Minimum DLL Versioncomctl32.dll version 4.71 or later
Headercommctrl.h
Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0

See Also

ListView_GetSelectionMark
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker