BCGControlBar Pro for MFC
DWORD_PTR CBCGPToolbarComboBoxButton::GetItemData ( int  iIndex = -1) const

Retrieves the value associated with the specified item in a combo box.

Returns
The value associated with the item, or 0 if an error occurs.

Retrieves the application-supplied value associated with the specified combo-box item. If the iIndex parameter is -1, the GetItemData function returns the value associated with the currently selected item.

The value can be set with the dwData parameter of a AddItem() member function call. Use the GetItemDataPtrAll() member function if the value to be retrieved is a pointer (void*).

Parameters
iIndexContains the zero-based index of an item in the combo box's list box.