CFontDialog::GetColor

呼叫此函式以取得選取的字型色彩。

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);
}

需求

Header: afxdlgs.h

請參閱

參考

CFontDialog 類別

階層架構圖表

CFontDialog::GetCurrentFont