Retrieves the command IDs for the specified collection of ribbon elements on the ribbon bar.
void GetItemIDsList(
   CList<UINT, UINT>& lstItems,
   BOOL bHiddenOnly = FALSE
) const;
Parameters
- [out] lstItems 
 The list of command IDs for ribbon elements that are contained in the ribbon bar.
- [in] bHiddenOnly 
 TRUE to exclude ribbon elements that are displayed; FALSE to include all ribbon elements in the ribbon bar.
Requirements
Header: afxribbonbar.h