Compartilhar via


ListView_GetCheckState

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This 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
    Handle to a list-view control.
  • iIndex
    Index of the item for which to retrieve the check state.

Return Value

Returns nonzero if the specified 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

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

List-View Controls Macros