CComboBox::SetItemData

This method sets the 32-bit value associated with the specified item in a combo box. Use the SetItemDataPtr method if the 32-bit item is to be a pointer.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int SetItemData( int nIndex, DWORD dwItemData );

See Also

CComboBox::GetItemData, CComboBox::GetItemDataPtr, CComboBox::SetItemDataPtr, CComboBox::AddString, CComboBox::InsertString