Partager via


CMFCVisualManager::OnDrawRibbonApplicationButton

The framework calls this method when it draws the Main Button on the ribbon.

virtual void OnDrawRibbonApplicationButton(
   CDC* pDC,
   CMFCRibbonButton* pButton
);

Parameters

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

  • [in] pButton
    A pointer to the Main Button on the ribbon.

Remarks

Override this method in a derived visual manager if you want to customize the appearance of the Main Button.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonButton Class