BCGControlBar Pro for MFC
BOOL CBCGPToolbarComboBoxButton::SelectItem ( int  iIndex,
BOOL  bNotify = TRUE 
)

Searches the list of items of a combo box button and selects one of them according to the specified index.

Returns
Nonzero if the item was found and selected; otherwise 0.

Searches for an item in the list box of a combo box by index, and if the item is found, selects it in the list box and copies its text to the edit control.

If bNotify is TRUE, then the combo box button sends to itself the CB_SELENDOK notification.

Parameters
iIndexContains the zero-based index of an item to select in the combo box's list box.
bNotifySpecifies whether to notify the combo box button control about selection (TRUE) or not (FALSE).