BCGControlBar Pro for MFC
static int CBCGPToolBar::GetCommandButtons ( UINT  uiCmd,
CObList &  listButtons 
)
static

Returns a collection of buttons with the same command ID form all the application toolbars.

Returns
A number of buttons with the same command ID.

Use this static member function to obtain a collection of CBCGPToolbarButton objects with the same command ID.

GetCommandButtons loops over all toolbars in the application and looks for the buttons with uiCmd command ID.

Parameters
uiCmd[in] Specifies the command ID to look for.
listButtonsA reference to a CObList object that receives the list of toolbar buttons.