Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
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.

CListCtrl::GetItemState

Retrieves the state of a list view item.

UINT GetItemState( 
   int nItem, 
   UINT nMask  
) const;

nItem

The index of the item whose state is to be retrieved.

nMask

Mask specifying which of the item's state flags to return.

The state flags for the specified list view item.

An item's state is specified by the state member of the LVITEM structure, as described in the Windows SDK. When you specify or change an item's state, the stateMask member specifies which state bits you want to change.

See the example for CListCtrl::GetTopIndex.

Header: afxcmn.h

Community Additions

ADD
Show:
© 2015 Microsoft