CFontDialog::GetSize

更新 : 2007 年 11 月

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

int GetSize( ) const;

戻り値

フォント サイズを 1/10 ポイント単位で返します。

使用例

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

必要条件

ヘッダー : afxdlgs.h

参照

参照

CFontDialog クラス

階層図

CFontDialog::GetWeight

CFontDialog::GetCurrentFont

その他の技術情報

CFontDialog のメンバ