how would you change text color???
my code to draw the text is somthing like:
DrawText (hdc, "text here", -1, &rc,
DT_SINGLELINE | DT_CENTER | DT_VCENTER);
how do i change the color??
(i have dev-c++)
-thanks
how would you change text color???
my code to draw the text is somthing like:
DrawText (hdc, "text here", -1, &rc,
DT_SINGLELINE | DT_CENTER | DT_VCENTER);
how do i change the color??
(i have dev-c++)
-thanks
use this function before your text out:
SetTextColor(hdc, RGB(255, 0, 0));
This will create a bright red text and the function returns the previous color you had selected as a COLORREF.
is it possible to changce text color in console applications?
That is in the FAQ