Share via


CMFCVisualManager::OnDrawRibbonCategoryTab

The framework calls this method when it draws the tab for a ribbon category.

virtual COLORREF OnDrawRibbonCategoryTab(
   CDC* pDC,
   CMFCRibbonTab* pTab,
   BOOL bIsActive
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] pTab
    A pointer to an instance of the CMFCRibbonTab class. The framework draws this tab.

  • [in] bIsActive
    A Boolean parameter that indicates whether the tab is active.

Return Value

The color that is used for text on the ribbon category tab.

Remarks

Override this method in a derived visual manager to customize the appearance of a ribbon category tab. For more information about ribbon categories, see CMFCRibbonCategory Class.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonCategory Class