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

CMFCRibbonFontComboBox::CMFCRibbonFontComboBox

Constructs and initializes a CMFCRibbonFontComboBox object.

Public Methods

Name

Description

CMFCRibbonFontComboBox::BuildFonts

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.

CMFCRibbonFontComboBox::GetCharSet

Returns the specified character set.

CMFCRibbonFontComboBox::GetFontDesc

 

CMFCRibbonFontComboBox::GetFontType

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.

CMFCRibbonFontComboBox::GetPitchAndFamily

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.

CMFCRibbonFontComboBox::RebuildFonts

Populates the ribbon font combo box with fonts of the previously specified font type, character set, and pitch and family.

CMFCRibbonFontComboBox::SetFont

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

CObject

   CMFCRibbonBaseElement

      CMFCRibbonButton

         CMFCRibbonEdit

            CMFCRibbonComboBox

               CMFCRibbonFontComboBox

Requirements

Header: afxRibbonComboBox.h

See Also

Reference

Hierarchy Chart

CMFCRibbonComboBox Class

Other Resources

MFC Classes