CComboBox::GetItemData

This method retrieves the application-supplied 32-bit value associated with the specified combo-box item. The 32-bit value can be set with the dwItemData parameter of a SetItemData method call. Use the GetItemDataPtr method if the 32-bit value to be retrieved is a pointer (void*).

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

DWORD GetItemData( int nIndex ) const;

See Also

CComboBox::SetItemData, CComboBox::GetItemDataPtr, CComboBox::SetItemDataPtr