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

Looks for a combo box button with the given command ID and gets the string associated with the specified item a combo box.

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

This function searches for a combo box button with the specified command ID and retrieves a string associated with the specified item. If iIndex is -1, it retrieves a string associated with the currently selected item. It returns NULL either if uiCmd does not specify a valid command ID or if iIndex does not specify a valid index.

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.