共用方式為


CMFCRibbonBaseElement::OnDraw

Called by the framework to draw the ribbon element.

virtual void OnDraw(
   CDC* pDC 
) = 0;

Parameters

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

Remarks

Override this method in a derived class if you want to customize the drawing of a specific ribbon element.

Requirements

Header: afxbaseribbonelement.h

See Also

Reference

CMFCRibbonBaseElement Class

Hierarchy Chart