Share via


CComboBoxEx::SetItem

Sets the attributes for an item in a ComboBoxEx control.

BOOL SetItem( 
   const COMBOBOXEXITEM* pCBItem  
);

Parameters

  • pCBItem
    A pointer to a COMBOBOXEXITEM structure that will receive the item information.

Return Value

Nonzero if the operation was successful; otherwise 0.

Remarks

This member function implements the functionality of the message CBEM_SETITEM, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CComboBoxEx Class

Hierarchy Chart

CComboBoxEx::GetItem

CComboBoxEx::InsertItem

Other Resources

CComboBoxEx Members