Partager via


CMFCRibbonFontComboBox::CMFCRibbonFontComboBox

Constructs and initializes a CMFCRibbonFontComboBox object.

CMFCRibbonFontComboBox(
    UINT nID,
    int nFontType = DEVICE_FONTTYPE | RASTER_FONTTYPE | TRUETYPE_FONTTYPE,
    BYTE nCharSet = DEFAULT_CHARSET,
    BYTE nPitchAndFamily = DEFAULT_PITCH,
    int nWidth = -1
);

Parameters

  • [in] nID
    The command ID of the command that executes when the user selects an item from the combo box.

  • [in] nFontType
    Specifies which font types to display in the combo box. Valid options are DEVICE_FONTTYPE, RASTER_FONTTYPE, and TRUETYPE_FONTTYPE, or any bitwise combination thereof.

  • [in] nCharSet
    Filters the fonts in the combo box to those that belong to the specified character set..

  • [in] nPitchAndFamily
    Specifies the pitch and the family of the fonts that are displayed in the combo box.

  • [in] nWidth
    Specifies the width, in pixels, of the combo box.

Remarks

For more information about possible nFontType parameter values, see EnumFontFamProc in the Windows SDK documentation.

For more information about valid character sets that can be assigned to nCharSet, and valid values that can be assigned to nPitchAndFamily, see LOGFONT in the Windows SDK documentation.

Requirements

Header: afxRibbonComboBox.h

See Also

Reference

CMFCRibbonFontComboBox Class

Hierarchy Chart