CMFCVisualManager::OnDrawRibbonPanel

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

ADD
Show: