Share via


CMFCRibbonEdit::OnDrawOnList

Called by the framework to draw the CMFCRibbonEdit Class control in a commands list box.

virtual void OnDrawOnList(
   CDC* pDC,
   CString strText,
   int nTextOffset,
   CRect rect,
   BOOL bIsSelected,
   BOOL bHighlighted
);

Parameters

  • [in] pDC
    Pointer to a device context for the CMFCRibbonEdit Class control.

  • [in] strText
    The display textCMFCRibbonEdit Class.

  • [in] nTextOffset
    Distance, in pixels, from the left side of the list box to the display text.

  • [in] rect
    The display rectangle for the CMFCRibbonEdit Class control.

  • [in] bIsSelected
    This parameter is not used.

  • [in] bHighlighted
    This parameter is not used.

Remarks

The commands list box displays ribbon controls to enable users to customize the quick access toolbar.

Requirements

Header: afxribbonedit.h

See Also

Reference

CMFCRibbonEdit Class

Hierarchy Chart