CMFCVisualManager::OnFillRibbonButton
TOC
Collapse the table of content
Expand the table of content

CMFCVisualManager::OnFillRibbonButton

 

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

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

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

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.

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

Requirements

Header: afxvisualmanager.h

Show:
© 2016 Microsoft