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

Activates the specified category.

Returns
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.

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