BCGControlBar Pro for MFC
static DWORD_PTR CBCGPToolbarComboBoxButton::GetItemDataAll ( UINT  uiCmd,
int  iIndex = -1 
)
static

Looks for a combo box button with the given command ID and retrieves the value associated with the specified item in a combo box.

Returns
The value associated with the item, CB_ERR if uiCmd does not specify a valid command ID, or 0 if iIndex does not specify a valid index.

This function searches for a combo box button with the specified command ID and retrieves the value associated with the specified item in a combo box. If iIndex is -1 it returns the 32-bit value associated with the currently selected item

Parameters
uiCmdSpecifies the button's command ID to look for.
iIndexContains the zero-based index of an item in the combo box's list box.