Share via


CMFCRibbonSeparator::OnDrawOnList

Called by the system to draw the separator on the Commands list.

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

Parameters

Parameter

Description

[in] pDC

A pointer to a device context.

[in] strText

Text displayed on the list.

[in] nTextOffset

Spacing between the text and the left side of the bounding rectangle.

[in] rect

Specifies the bounding rectangle.

[in] bIsSelected

Ignored.

[in] bHighlighted

Ignored.

Requirements

Header: afxbaseribbonelement.h

See Also

Reference

Hierarchy Chart

CMFCRibbonSeparator Class