CFontDialog::GetStyleName
Volání této funkce můžete načíst název stylu vybraného písma.
CString GetStyleName( ) const;
Název stylu písma.
// Get the style name of the selected font, if any.
CFontDialog dlg;
dlg.m_cf.Flags |= CF_USESTYLE;
if (dlg.DoModal() == IDOK)
{
CString stylename = dlg.GetStyleName();
TRACE(_T("Style name of the selected font = %s\n"), stylename);
}
Záhlaví: afxdlgs.h