CListCtrl::GetCheck
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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.

Nonzero if the item is selected, otherwise 0.

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

See the example for CListCtrl::SetCheck.

Show:
© 2016 Microsoft