CMFCVisualManager::OnFillRibbonMainPanelButton
The framework calls this method when it fills the interior of a ribbon button located on the Main panel.
virtual COLORREF OnFillRibbonMainPanelButton(
CDC* pDC,
CMFCRibbonButton* pButton
);
Parameters
[in] pDC
A pointer to a device context.[in] pButton
A pointer to a CMFCRibbonButton Class object. The framework fills 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 on the Main panel.
Requirements
Header: afxvisualmanager.h