Share via


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::GetFontDesc

 

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

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonComboBox Class

Other Resources

Classes (MFC Feature Pack)