Share via


CMFCVisualManager::OnFillRibbonButton

The framework calls this method when it fills the interior of a ribbon button.

virtual COLORREF OnFillRibbonButton(
   CDC* pDC,
   CMFCRibbonButton* pButton
);

Parameters

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

  • [in] pButton
    A pointer to a CMFCRibbonButton object. The framework fills the interior of this ribbon button.

Return Value

The color of text for the ribbon button specified by pButton if the ribbon button supports text. A value of -1 if text is invalid for the ribbon button.

Remarks

Override this method in a derived visual manager to customize the appearance of ribbon buttons.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonButton Class