CFontDialog::IsBold

更新 : 2007 年 11 月

選択されているフォントが太字かどうかを調べます。

BOOL IsBold( ) const;

戻り値

選択されているフォントの特性として太字が有効になっている場合は、0 以外を返します。それ以外の場合は 0 を返します。

使用例

// Is the selected font bold?
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   BOOL bold = dlg.IsBold();
   TRACE(_T("Is the selected font bold? %d\n"), bold);
}

必要条件

ヘッダー : afxdlgs.h

参照

参照

CFontDialog クラス

階層図

CFontDialog::GetCurrentFont

その他の技術情報

CFontDialog のメンバ