Compartir a través de


CListCtrl::GetCheck

Retrieves the current display status of the state image that is associated with an item.

BOOL GetCheck(
   int nItem 
) const;

Parameters

  • nItem
    The zero-based index of a list control item.

Return Value

Nonzero if the item is selected, otherwise 0.

Remarks

This member function implements the behavior of the Win32 macro, ListView_GetCheckState, as described in the Windows SDK.

Example

See the example for CListCtrl::SetCheck.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::SetCheck

Other Resources

CListCtrl Members