Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


The framework calls this method when it draws a CMFCRibbonPanel object.

virtual COLORREF OnDrawRibbonPanel(
   CDC* pDC,
   CMFCRibbonPanel* pPanel,
   CRect rectPanel,
   CRect rectCaption

[in] pDC

A pointer to a device context.

[in] pPanel

A pointer to a CMFCRibbonPanel object. The framework draws this ribbon panel.

[in] rectPanel

A rectangle that specifies the boundaries of the panel.

[in] rectCaption

A rectangle that specifies the boundaries of the caption for the panel.

The color of text on the ribbon panel.

Override this method in a derived class to customize the appearance of a ribbon panel.

Header: afxvisualmanager.h

Community Additions

© 2015 Microsoft