BCGControlBar Pro for MFC
BOOL CBCGPMultiLinkCtrl::SetItemState ( int  iLink,
UINT  state,
UINT  stateMask = LIS_FOCUSED|LIS_ENABLED|LIS_VISITED 
)

Sets item state.

Parameters
iLinkZero-based index of the link.
stateThe value of the specified state item being set.
stateMaskCombination of flags describing the state item being set. For a list of values, see the description of the state member in the BCGPLITEM structure. Allowable items are identical to those allowed in state.
Returns
Returns TRUE on success, FALSE on failure.