BCGControlBar Pro for MFC
LPCTSTR CBCGPToolbarComboBoxButton::GetItem ( int  iIndex = -1) const

Gets the string associated with the specified item in a combo box.

Returns
A const pointer to the item's string. It can be NULL.

Call this function to retrieve a string associated with the specified by iIndex item. If the iIndex parameter is -1, the GetItem function returns the string of the item that is currently selected.

This function returns NULL if iIndex does not specify a valid index, or if iIndex is -1 and there is no selected item in a combo box.

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