CMFCRibbonBar::AddContextCategory
Visual Studio 2012
Creates and initializes a new context category for the ribbon bar.
CMFCRibbonCategory* AddContextCategory( LPCTSTR lpszName, LPCTSTR lpszContextName, UINT uiContextID, AFX_RibbonCategoryColor clrContext, UINT uiSmallImagesResID, UINT uiLargeImagesResID, CSize sizeSmallImage = CSize(16, 16), CSize sizeLargeImage = CSize(32, 32), CRuntimeClass* pRTI = NULL );
Use this function to add a context category. Context categories are a special type of category that can be shown or hidden at runtime, depending on the current application context. For example, when the user selects an object, you can display special tabs with context categories which you use to change the specific selected object.
The color of a context category can be one of the following values:
-
AFX_CategoryColor_None
-
AFX_CategoryColor_Red
-
AFX_CategoryColor_Orange
-
AFX_CategoryColor_Yellow
-
AFX_CategoryColor_Green
-
AFX_CategoryColor_Blue
-
AFX_CategoryColor_Indigo
-
AFX_CategoryColor_Violet