OnCtlColor for Editbox [英] OnCtlColor for Editbox

查看:67
本文介绍了OnCtlColor for Editbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我能够获得Dialog调用的OnCtlColor函数,但该对话框中的编辑控件无法调用该函数;

实际上,我的编辑控件是在一个可以从对话框访问的类中定义的.示例:
CSampleDlg::m_subclass->EditButton

如果我想从我的Editbutton类本身更改EditButton的颜色,该怎么办?

在对话框中调用OnCtlColor() 后,是否可以从对话框发送消息?

Hi,

I am able to get the OnCtlColor function called for Dialog but not for my edit control in that dialog;

Actually my edit control is defined in one class which is accessible from dialog. Example:
CSampleDlg::m_subclass->EditButton

If I wish to change the color of EditButton from my Editbutton class itself, what can be done?

Can I send a message from Dialog once OnCtlColor() is called in the dialog? Is it possible?

推荐答案

使用消息反射方法找到了解决方案.
Found the solution by using message reflection methodology.


这篇关于OnCtlColor for Editbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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