共用方式為


CMFCRibbonLabel Class

Implements a non-clickable text label for a ribbon.

class CMFCRibbonLabel : public CMFCRibbonButton

Members

Public Constructors

Name

Description

CMFCRibbonLabel::CMFCRibbonLabel

Constructs and initializes a CMFCRibbonLabel object with the specified text string.

CMFCRibbonLabel::~CMFCRibbonLabel

Destructor.

Public Methods

Name

Description

CMFCRibbonLabel::CreateObject

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

CMFCRibbonLabel::GetThisClass

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

CMFCRibbonLabel::SetACCData

Determines the accessibility data for the current ribbon label element. (Overrides CMFCRibbonButton::SetACCData.)

Remarks

After you create a ribbon label, add it to a panel by calling CMFCRibbonPanel::Add.

You cannot add a ribbon label to the Quick Access Toolbar.

Inheritance Hierarchy

CObject

   CMFCRibbonBaseElement

      CMFCRibbonButton

         CMFCRibbonLabel

Requirements

Header: afxRibbonLabel.h

See Also

Reference

Hierarchy Chart

CMFCRibbonButton Class

Other Resources

MFC Classes