共用方式為


CMFCVisualManager::OnDrawRibbonQuickAccessToolBarSeparator

The framework calls this method when it draws a separator on the Quick Access Toolbar of a ribbon.

virtual void OnDrawRibbonQuickAccessToolBarSeparator(
   CDC* pDC,
   CMFCRibbonSeparator* pSeparator,
   CRect rect
);

Parameters

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

  • [in] pSeparator
    A pointer to a CMFCRibbonSeparator object. The framework draws this ribbon separator.

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

Remarks

Override this method in a derived class to customize the appearance of ribbon separators on the Quick Access Toolbar.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonSeparator Class