void CBCGPRibbonBar::GetElementsByID | ( | UINT | uiCmdID, |
CArray< CBCGPBaseRibbonElement *, CBCGPBaseRibbonElement * > & | arButtons, | ||
BOOL | bIncludeFloaty = FALSE , |
||
BOOL | bIncludeActivePopup = FALSE |
||
) |
Returns an array of all elements with specified ID.
Fills arButtons with pointers to all elements with specified command ID. Ribbon bar may contain several elements with the same command ID, because some elements can be copied and placed on Quick Access Toolbar.
uiCmdID | Specifies command ID to search by. |
arButtons | When the function returns, the array contains pointers to ribbon elements that have been found. |
bIncludeFloaty | When this parameter is TRUE, the array also includes elements located on the mini-toolbar (floaty). |
bIncludeActivePopup | When this parameter is TRUE, the array also includes elements located on the active popup window (e.g., pannel displayed from the QAT button). |