如何动态更改编辑框的颜色 [英] How to change color of edit box dynamically

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

问题描述

我想在满足特定条件时动态更改编辑框的背景颜色和文本颜色。



WM_CTLCOLOR函数我们可以在创建编辑框时设置颜色



如果满足某些条件,如何动态更改编辑框的颜色







提前致谢

I want to change background color and text color of the edit box dynamically when certain condition is met.

WM_CTLCOLOR function we can set color at creation of edit box

but how to change color of edit box dynamically if certain condition is met



Thanks in advance

推荐答案

回复 WM_CTLCOLOREDIT 消息 [ ^ ]如上所述。


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

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