選択されているフォントの色を取得します。
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