C++ - Change text color and make it bold & underlined!
I found some code to make the background gray and the text color black:
1 2 3 4
|
SetConsoleTextAttribute ( m_hConsole,
BACKGROUND_RED |
BACKGROUND_GREEN |
BACKGROUND_BLUE );
| |
Not sure why that makes it gray though.....
Also, how can I make it both bold and underlined?
Don't think you can in console applications. I suggest not writing programs in the CMD Prompt, just use it to learn the basics of C++.
You should use Win32 or another GUI library for application development.
Topic archived. No new replies allowed.