Colored Text

I have a question is it possible to show colored text in a CView
Thank You
Gregory
[95 byte] By [Gregory Iams] at [2007-11-18 13:41:40]
# 1 Re: Colored Text
Originally posted by Gregory Iams
I have a question is it possible to show colored text in a CView
Yes, absoultely.
gstercken at 2007-11-11 2:09:10 >
# 2 Re: Colored Text
Just set the text colour and draw the text in the inherited class's OnDraw method e.g.

void CMyView::OnDraw(CDC *pDC)
{
pDC->SetTextColor(RGB(0xFF, 0x00, 0x00)); // red text
pDC->TextOut(0, 0, "Hello");
}

Darwen.
darwen at 2007-11-11 2:10:13 >