BCGControlBar Pro for MFC
virtual BOOL CBCGPRibbonBar::SetActiveCategory ( CBCGPRibbonCategory pCategory,
BOOL  bForceRestore = FALSE 

Activates the specified category.

Nonzero if the specified category has been activated; otherwise 0. The function fails if the specified category can't be activated (main category, for example), or is not present in the list of categories.

Use this function to activate a category.

pCategorySpecifies a category to activate.
bForceRestoreIf this parameter is TRUE, the ribbon bar will be restored from minimized state.