Colored Text
I have a question is it possible to show colored text in a CView
Thank You
Gregory
# 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 >
