Partilhar via


CListCtrl::GetItemState

Retrieves the state of a list view item.

UINT GetItemState(
   int nItem,
   UINT nMask 
) const;

Parameters

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

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

Return Value

The state flags for the specified list view item.

Remarks

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.

Example

See the example for CListCtrl::GetTopIndex.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::SetItemState

CListCtrl::GetItem

Other Resources

CListCtrl Members