BCGControlBar Pro for MFC
CBCGPBaseRibbonElement* CBCGPRibbonPanel::FindByID ( UINT  uiCmdID,
BOOL  bNonCustomOnly = TRUE,
BOOL  bCheckForSimplifiedMode = FALSE 
) const

Finds an element by its command ID.

Looks for a ribbon element by command ID.

Parameters
uiCmdIDSpecifies command ID to find by.
bNonCustomOnlySet it to TRUE to find non-custom elements only.
bCheckForSimplifiedModeIf TRUE, the elements invisible in the current mode (classic or simplified) elements will be excluded from the search scope.