Retrieves the command IDs for the specified collection of ribbon elements on the ribbon bar.
CList<UINT, UINT>& lstItems,
BOOL bHiddenOnly = FALSE
The list of command IDs for ribbon elements that are contained in the ribbon bar.
to exclude ribbon elements that are displayed; FALSE to include all ribbon elements in the ribbon bar.