activexcontrol命令按钮属性更改 [英] activexcontrol command Button properties change

查看:62
本文介绍了activexcontrol命令按钮属性更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

单击鼠标左键时,ActivexCommandButton应该更改其属性BackColor.如何在Visual StudioC ++ 2010中更改此属性.

The ActivexCommandButton should change its property BackColor when the left mouse button is clicked.How to change this property in Visual studioC++ 2010.

推荐答案


首先添加新的已安装模板类型类(在2008年),然后选择用于ActiveX控件的mfc类,然后在列表中选择commandButton.

创建命令按钮的标头(.h)和.cpp.

为命令按钮和变量创建变量/变量指针.put_BackColor(RGB(250,0,0));
variablepointer-> put_BackColor(250,0,0));
I got the solution that is
first add the new class of installed templates type(in 2008) and select mfc class for activex control and select the commandButton in the list.

the header(.h) and .cpp of the commandbutton is created.

create a variable/variable pointer for command button and variable.put_BackColor(RGB(250,0,0));
variablepointer->put_BackColor(250,0,0));


这篇关于activexcontrol命令按钮属性更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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