Macros


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
A handle to a list-view control.
iIndex
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.

Macro Information

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


Page view tracker