Click here to Skip to main content
14,971,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
M. Mohsen 28-Aug-10 14:24pm
   
Why use a dialog when you can replace it with a form. The only difference should be that you can customize the form better. I haven't done a lot of desktop programming with C++. Hope it helps.

1 solution

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.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900