Udostępnij za pośrednictwem


CFontDialog::GetStyleName

Wywołanie tej funkcji do pobierania nazwy stylu wybranej czcionki.

CString GetStyleName( ) const;

Wartość zwracana

Nazwa stylu czcionki.

Przykład

// 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);
}

Wymagania

Nagłówek: afxdlgs.h

Zobacz też

Informacje

Klasa CFontDialog

Wykres hierarchii

CFontDialog::GetFaceName

CFontDialog::GetCurrentFont