共用方式為


CMFCVisualManager::OnDrawRibbonDefaultPaneButton

The framework calls this method when it draws the default button for the ribbon pane.

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

Parameters

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

  • [in] pButton
    A pointer to the default button for the ribbon pane.

Remarks

The framework displays the default button when a ribbon pane is resized to its minimal size and there is no area to display the content for the panel. When the user clicks on the default button, the framework displays a drop down menu that contains the content for the panel.

Override this method in a derived visual manager to customize the appearance of the default button.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCRibbonButton Class