CFontDialog::GetColor

更新 : 2007 年 11 月

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

COLORREF GetColor( ) const;

戻り値

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

使用例

// Get the color of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   COLORREF color = dlg.GetColor();
   TRACE(_T("Color of the selected font = %8x\n"), color);
}

必要条件

ヘッダー : afxdlgs.h

参照

参照

CFontDialog クラス

階層図

CFontDialog::GetCurrentFont

その他の技術情報

CFontDialog のメンバ