更改整个控制台背景色(Win32 C ++) [英] Change entire console background color (Win32 C++)
本文介绍了更改整个控制台背景色(Win32 C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改整个控制台的背景颜色?我已经尝试过 SetConsoleTextAttribute
,它只会更改新文本的背景颜色.
How can I change the entire console's background color? I've tried SetConsoleTextAttribute
and it only changes the background color of new text.
当出现严重错误时,我实际上希望整个控制台变成红色.
I effectively want the entire console to turn red when a serious error arises.
感谢所有尝试提供帮助的人.
Thanks to everyone who attempts to help.
推荐答案
尝试类似的方法:
system("color c2");
这篇关于更改整个控制台背景色(Win32 C ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文