CMFCRibbonFontComboBox::SetFont

Selects the specified font in the combo box.

BOOL SetFont(
    LPCTSTR lpszName,
    BYTE nCharSet = DEFAULT_CHARSET,
    BOOL bExact = FALSE 
);

Parameters

  • lpszName
    Specifies the name of the font to select.

  • nCharSet
    Specifies the character set for the selected font.

  • bExact
    TRUE to specify that the character set must match when selecting a font; FALSE to specify that the character set can be ignored when selecting a font.

Return Value

Nonzero if the specified font was found and selected; otherwise, zero.

Requirements

Header: afxRibbonComboBox.h

See Also

Reference

CMFCRibbonFontComboBox Class

Hierarchy Chart