how to add color palette so that i can change the color of text.
Printable View
how to add color palette so that i can change the color of text.
You'll have to give a little more detail on what you are trying to do.
What is your environment?
If you program with API of the GDI, then there is no palette for the text.
Instead, you use SetTextColor(hdc, font_foreground_color); before writing text. Then, it is too late to change the color. The only option would be to write over the old text.
i have displayed time in caption bar.and the thing is this time's color should be changed as selected at run time.
Used a Dialogbased application.
i have saved time in CTime strTime;
how to change the color of this time ?
help me with an example plz.