BCGControlBar Pro for MFC
static int CBCGPToolbarComboBoxButton::GetCurSelAll ( UINT  uiCmd)
static

Looks for a combo box button with the given command ID and retrieves the index of the currently selected item, if any, in the list box of a combo box.

Returns
The zero-based index of the currently selected item in the list box of a combo box, or CB_ERR if no item is selected or no combo box button is found by the specified command ID.

This function looks for a combo box button with the given command ID and retrieves the index of the currently selected item, if any, in the list box of a combo box.

Parameters
uiCmdSpecifies the button's command ID to look for.