CFontDialog::GetFaceName

更新 : 2007 年 11 月

選択されているフォントの書体名を取得します。

CString GetFaceName( ) const;

戻り値

CFontDialog ダイアログ ボックスで現在選択されているフォントの書体名を返します。

使用例

// Get the face name of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   CString facename = dlg.GetFaceName();
   TRACE(_T("Face name of the selected font = %s\n"), facename);
}

必要条件

ヘッダー : afxdlgs.h

参照

参照

CFontDialog クラス

階層図

CFontDialog::GetCurrentFont

CFontDialog::GetStyleName

その他の技術情報

CFontDialog のメンバ