我想更改EditBox的颜色 [英] I want to change Color of EditBox

查看:79
本文介绍了我想更改EditBox的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在操作对话框时执行非法操作时,我想更改编辑框的颜色.我只想把它变成红色.互联网上有很多页面可供使用,但我只想知道是否仍然可以在没有所有这些复杂性的情况下更改颜色.

我在Visual Studio 2010中使用VC ++ MFC.

I want to change color of editbox when user does illegal action while operating my dialog box. I just want to make it red. There are so many pages available on internet but I just want to know if there is anyway to change color without all this complexity.

I''m using VC++ MFC in Visual Studio 2010.

推荐答案

您是指MFC CEdit吗?请看此CodeProject文章:
在CEdit和CStatic中使用颜色 [
Do you mean MFC CEdit? Look at this CodeProject article:
Using colors in CEdit and CStatic[^].

—SA


这篇关于我想更改EditBox的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆