ListView_SetItemIndexState macro (commctrl.h)

Sets the state of a specified list-view item. Use this macro or send the LVM_SETITEMINDEXSTATE message explicitly.

Syntax

void ListView_SetItemIndexState(
  [in]  hwndLV,
  [in]  plvii,
  [in]  data,
  [in]  mask
);

Parameters

[in] hwndLV

Type: HWND

A handle to the list-view control.

[in] plvii

Type: LVITEMINDEX*

A pointer to an LVITEMINDEX structure for the item. The caller is responsible for allocating this structure and setting the members.

[in] data

Type: UINT

The state to set on the item as one or more (as a bitwise combination) of the List-View Item States flags.

[in] mask

Type: UINT

The valid bits of the state specified by parameter data. For more information, see the stateMask member of the LVITEM) structure.

Return value

None

Requirements

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