Partager via


CLinkCtrl::SetItemState

Retrieves the state of the link control item.

BOOL SetItemState( 
   int iLink, 
   UINT state, 
   UINT stateMask = LIS_FOCUSED | LIS_ENABLED | LIS_VISITED  
);

Parameters

  • iLink
    The index of a link control item.

  • pnState
    The value of the specified state item being set.

  • stateMask
    Combination of flags describing the state item being set. 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

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

Requirements

Header: afxcmn.h

See Also

Reference

CLinkCtrl Class

Hierarchy Chart

CLinkCtrl::GetItemState

CLinkCtrl::GetItem