DWORD_PTR CBCGPToolbarComboBoxButton::GetItemData | ( | int | iIndex = -1 | ) | const |
Retrieves the value associated with the specified item in a combo box.
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*).
iIndex | Contains the zero-based index of an item in the combo box's list box. |