Share via


CMFCVisualManager::OnFillRibbonEdit

The framework calls this method when it fills the interior of an instance of the CMFCRibbonRichEditCtrl class.

virtual void OnFillRibbonEdit(
   CDC* pDC,
   CMFCRibbonRichEditCtrl* pEdit,
   CRect rect,
   BOOL bIsHighlighted,
   BOOL bIsPaneHighlighted,
   BOOL bIsDisabled,
   COLORREF& clrText,
   COLORREF& clrSelBackground,
   COLORREF& clrSelText
);

Parameters

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

  • [in] pEdit
    A pointer to a CMFCRibbonRichEditCtrl object. The framework fills the interior of this edit control.

  • [in] rect
    A rectangle that specifies the boundaries of the edit control.

  • [in] bIsHighlighted
    A Boolean parameter that indicates whether the edit control is highlighted.

  • [in] bIsPaneHighlighted
    A Boolean parameter that indicates whether the parent pane is highlighted.

  • [in] bIsDisabled
    A Boolean parameter that indicates whether the edit control is unavailable.

  • [in] clrText
    A reference to the text color of the edit control.

  • [in] clrSelBackground
    A reference to the background color of the edit control when it is highlighted.

  • [in] clrSelText
    A reference to the color of selected text on the edit control.

Remarks

The CMFCRibbonRichEditCtrl indicated by pEdit can be a part of a combo box button on the ribbon.

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

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart