BCGControlBar Pro for MFC
static CBCGPToolbarComboBoxButton* CBCGPToolbarComboBoxButton::GetByCmd ( UINT  uiCmd,
BOOL  bIsFocus = FALSE 
)
static

Given a command ID returns a pointer to a combo box button from the list of toolbar buttons.

Returns
A pointer to a combo box button. It can be NULL.

This function obtains a list of toolbar buttons with the same command ID specified by uiCmd from CBCGPToolBar::GetCommandButtons. Then, it searches the list for a combo box button and returns a pointer to it or NULL if there is no CBCGPToolbarComboBoxButton in the list.

Parameters
uiCmdSpecifies the command ID to look for.
bIsFocusIf TRUE, the function returns only focused buttons; otherwise it returns all buttons.