Export (0) Print
Expand All
Expand Minimize

ListView_GetCheckState macro

Determines if an item in a list-view control is selected. This should be used only for list-view controls that have the LVS_EX_CHECKBOXES style.

Syntax


BOOL ListView_GetCheckState(
  HWND hwndLV,
  UINT iIndex
);

Parameters

hwndLV

Type: HWND

A handle to a list-view control.

iIndex

Type: UINT

The index of the item for which to retrieve the check state.

Return value

Returns nonzero if the given item is selected, or zero otherwise. If this macro is applied to a list-view control that does not have check boxes enabled, the return value is not reliable.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft