共用方式為


CMFCVisualManager::OnDrawRibbonButtonsGroup

The framework calls this method when it draws a group of buttons on the ribbon.

virtual COLORREF OnDrawRibbonButtonsGroup(
   CDC* pDC,
   CMFCRibbonButtonsGroup* pGroup,
   CRect rectGroup
);

Parameters

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

  • [in] pGroup
    A pointer to a group of buttons on the ribbon. The framework draws this group of buttons.

  • [in] rectGroup
    A rectangle that specifies the boundaries of the group.

Return Value

A reserved value. The default implementation returns -1.

Remarks

Override this method in a derived visual manager to customize the appearance of a group of buttons on the ribbon.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonButtonsGroup Class