Expand Minimize
This topic has not yet been rated - Rate this topic

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
);
[in] pDC

A pointer to a device context.

[in] pButton

A pointer to a CMFCRibbonButton Class object. The framework fills 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 on the Main panel.

Header: afxvisualmanager.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.