CMFCToolBarFontComboBox::SetFont
Selects the font in the font combo box according to the font name and character set that are specified in the parameters.
BOOL SetFont(
LPCTSTR lpszName,
BYTE nCharSet=DEFAULT_CHARSET,
BOOL bExact=FALSE
);
Parameters
[in] lpszName
Specifies the font name or prefix.[in] nCharSet
Specifies the character set.[in] bExact
Specifies whether lpszName contains the font name or the font prefix.
Return Value
Nonzero if the font was selected successfully; otherwise 0.
Remarks
If bExact is TRUE, this method selects a font that exactly matches the name that you specified as lpszName. If bExact is FALSE, this method selects a font that starts with the text specified as lpszName and that uses the character set that you specified as nCharSet. If nCharSet is set to DEFAULT_CHARSET, the character set will be ignored and only lpszName will be used to select a font.
Requirements
Header: afxtoolbarfontcombobox.h