CFontDialog::GetStyleName

更新 : 2007 年 11 月

選択されているフォントのスタイル名を取得します。

CString GetStyleName( ) const;

戻り値

フォントのスタイル名を返します。

使用例

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

必要条件

ヘッダー : afxdlgs.h

参照

参照

CFontDialog クラス

階層図

CFontDialog::GetFaceName

CFontDialog::GetCurrentFont

その他の技術情報

CFontDialog のメンバ