CFontDialog::GetWeight

更新 : 2007 年 11 月

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

int GetWeight( ) const;

戻り値

選択されているフォントの太さを返します。

解説

フォントの太さの詳細については、「CFont::CreateFont」を参照してください。

使用例

// Get the weight of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   int weight = dlg.GetWeight();
   TRACE(_T("Weight of the selected font = %d\n"), weight);
}

必要条件

ヘッダー : afxdlgs.h

参照

参照

CFontDialog クラス

階層図

CFontDialog::GetCurrentFont

CFontDialog::IsBold

その他の技術情報

CFontDialog のメンバ