Compartilhar via


CMFCVisualManager::OnDrawRibbonCaption

The framework calls this method when it draws the caption bar of the main frame window. The framework calls this method only if the ribbon is integrated with the main frame.

virtual void OnDrawRibbonCaption(
   CDC* pDC,
   CMFCRibbonBar* pBar,
   CRect rect,
   CRect rectText
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] pBar
    A pointer to a ribbon bar. The visual manager draws this ribbon bar.

  • [in] rect
    A rectangle that specifies the boundaries of the ribbon bar.

  • [in] rectText
    A rectangle that specifies the boundaries for the text of the caption bar.

Remarks

Override this function in a derived visual manager to customize the appearance of the caption bar. This method affects the caption bar only if the ribbon is integrated with the main frame window.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart