description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CMFCRibbonLabel Class |
CMFCRibbonLabel Class |
11/04/2016 |
|
|
0346c891-83bf-4f20-b8a1-c84cf2aadced |
Implements a non-clickable text label for a ribbon.
class CMFCRibbonLabel : public CMFCRibbonButton
Name | Description |
---|---|
CMFCRibbonLabel::CMFCRibbonLabel | Constructs and initializes a CMFCRibbonLabel object with the specified text string. |
CMFCRibbonLabel::~CMFCRibbonLabel |
Destructor. |
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.) |
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.
Header: afxRibbonLabel.h
Constructs and initializes a CMFCRibbonLabel object that displays the specified text string.
CMFCRibbonLabel(
LPCTSTR lpszText,
BOOL bIsMultiLine = FALSE);
lpszText
[in] The text to appear in the label.
bIsMultiLine
[in] TRUE to specify that the label is a multi-line label; otherwise, FALSE.
Determines the accessibility data for the current ribbon label element.
virtual BOOL SetACCData(
CWnd* pParent,
CAccessibilityData& data);
pParent
[in] Represents the parent window of the current ribbon label.
data
[out] An object of type CAccessibilityData
that is populated with the accessibility data of the current ribbon label.
TRUE if the data parameter was successfully populated with the accessibility data of the current ribbon label; otherwise, FALSE.