CMFCRibbonFontComboBox Class
Implements a combo box that contains a list of fonts. You place the combo box on a ribbon panel.
class CMFCRibbonFontComboBox : public CMFCRibbonComboBox
Members
Public Constructors
Name |
Description |
---|---|
CMFCRibbonFontComboBox::~CMFCRibbonFontComboBox |
Destructor. |
Protected Constructors
Name |
Description |
---|---|
Constructs and initializes a CMFCRibbonFontComboBox object. |
Public Methods
Name |
Description |
---|---|
Populates the ribbon font combo box with fonts of the specified font type, character set, and pitch and family. |
|
CMFCRibbonFontComboBox::CreateObject |
Used by the framework to create a dynamic instance of this class type. |
Returns the specified character set. |
|
|
|
Returns which font types to display in the combo box. Valid options are DEVICE_FONTTYPE, RASTER_FONTTYPE, and TRUETYPE_FONTTYPE, or any bitwise combination thereof. |
|
Returns the pitch and the family of the fonts that are displayed in the combo box. |
|
CMFCRibbonFontComboBox::GetThisClass |
Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. |
Populates the ribbon font combo box with fonts of the previously specified font type, character set, and pitch and family. |
|
Selects the specified font in the combo box. |
Remarks
After you create a CMFCRibbonFontComboBox object, add it to a ribbon panel by calling CMFCRibbonPanel::Add.
Inheritance Hierarchy
Requirements
Header: afxRibbonComboBox.h