CComboBox::SetItemData

Syntax

int SetItemData( int nIndex, DWORD dwItemData );

Parameters

nIndex

Contains a zero-based index to the item to set.

dwItemData

Contains the new value to associate with the item.

Remarks

Sets the 32-bit value associated with the specified item in a combo box.

Return Value

CB_ERR if an error occurs.

See Also

CComboBox::GetItemData, CB_SETITEMDATA, CComboBox::AddString, CComboBox::InsertString