Share via


CLinkCtrl::GetItemState

Retrieves the state of the link control item.

BOOL GetItemState( 
   int iLink, 
   UINT * pnState, 
   UINT stateMask = LIS_FOCUSED | LIS_ENABLED | LIS_VISITED  
) const;

Parameters

  • iLink
    The index of a link control item.

  • pnState
    The value of the specified state item.

  • stateMask
    Combination of flags describing which state item to get. For a list of values, see the description of the state member in the LITEM structure. Allowable items are identical to those allowed in state.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

Retrieves the value of the specified state item of a specific link control item. For more information, see the Win32 message LM_GETITEM in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CLinkCtrl Class

Hierarchy Chart

CLinkCtrl::SetItemState

CLinkCtrl::GetItem