共用方式為


CMFCVisualManager::OnFillRibbonMenuFrame

The framework calls this method when it fills the menu frame of the ribbon panel.

virtual void OnFillRibbonMenuFrame(
   CDC* pDC,
   CMFCRibbonMainPanel* pPanel,
   CRect rect
);

Parameters

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

  • [in] pPanel
    A pointer to an instance of the CMFCRibbonMainPanel Class. The framework fills the menu frame for this ribbon panel.

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

Remarks

Override this method in a derived visual manager to customize the appearance of the menu bar for the CMFCRibbonMainPanel.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonMainPanel Class