圆形颜色按钮实现 [英] Round Color button implementation

查看:76
本文介绍了圆形颜色按钮实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..在我的Visual C ++ 6.0编程中,我想在对话框上放置一些圆形的颜色按钮.我通过一个圆形按钮实现代码(通过使用CRoundButton类)进行了检查,但是我无法为其着色.

按钮也必须是我已使用SetState属性的按钮类型,但是在单击另一个按钮时,先前的按钮就会释放.

任何人都可以帮助plz吗?

Timkee

Hi..In my visual c++ 6.0 programming i want to put some round color buttons on my dialog. I hv gone through a round button implementation code (by using CRoundButton class) but i am unable to to color it.

Also the button has to be pushbutton type for which i have used SetState property, but on clicking the other button the previous one releases.

Can anyone help plz?

Timkee

推荐答案

如果其他按钮的状态发生变化,则可能已设置了单选样式.确保没有设置BS_AUTORADIOBUTTON或BS_RADIOBUTTON样式,并且没有设置BS_PUSHBUTTON.

我不知道CRoundButton是什么,但是通常在更改按钮控件的颜色时,您可以在
If the other buttons state changes, you have probably set the radio style. Make sure you don''t have the BS_AUTORADIOBUTTON or BS_RADIOBUTTON styles set, and that BS_PUSHBUTTON is.

I don''t know what the CRoundButton is, but normally when changing the color of a button control you do it in the handler for the WM_CTLCOLORBTN[^] message.


这篇关于圆形颜色按钮实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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