Udostępnij za pośrednictwem


CMFCRibbonMainPanel Class

Implements a ribbon panel that displays when you click the CMFCRibbonApplicationButton.

class CMFCRibbonMainPanel : public CMFCRibbonPanel

Members

Public Constructors

Name

Description

CMFCRibbonMainPanel::CMFCRibbonMainPanel

Default constructor.

CMFCRibbonMainPanel::~CMFCRibbonMainPanel

Destructor.

Public Methods

Name

Description

CMFCRibbonMainPanel::Add

Adds a ribbon element to the left pane of the application button panel. (Overrides CMFCRibbonPanel::Add.)

CMFCRibbonMainPanel::AddRecentFilesList

Adds a text string to the recent files list menu.

CMFCRibbonMainPanel::AddToBottom

Adds a ribbon element to the bottom pane of the ribbon application panel.

CMFCRibbonMainPanel::AddToRight

Adds a ribbon element to the right pane of the application button panel.

CMFCRibbonMainPanel::CreateObject

Used by the framework to create a dynamic instance of this class type.

CMFCRibbonMainPanel::GetCommandsFrame

Returns a rectangle that represents the area of the ribbon main panel.

CMFCRibbonMainPanel::GetThisClass

Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type.

Remarks

The framework displays the CMFCRibbonMainPanel when you open the application panel. It contains three panes:

  • The left pane contains commands associated with files, such as Open, Save, Print, and Close. To add a command to this pane, call CMFCRibbonMainPanel::Add.

  • The right pane contains options that modify the command that you click in the left pane. For example, if you click Save As from the left pane, the right pane can display available file types. To add an item to this pane, call CMFCRibbonMainPanel::AddToRight.

  • The bottom pane contains buttons that allow you to change the application's settings and to exit the program. To add an item to this pane, call CMFCRibbonMainPanel::AddToBottom.

Inheritance Hierarchy

CObject

   CMFCRibbonPanel

      CMFCRibbonMainPanel

Requirements

Header: afxRibbonMainPanel.h

See Also

Reference

Hierarchy Chart

CMFCRibbonPanel Class

Other Resources

MFC Classes