Remove visual click effect of CButton

689 views Asked by At

Is there any way of removing the visual effect of clicking a CButton?

I want to put two CButtons with BMPs side by side so that they form a bigger image, but I want to remove the visual effect of the click - that is the image being pressed. How can I do that?

1

There are 1 answers

0
edtheprogrammerguy On BEST ANSWER

Use the same image for the Up and Down states of the button. That way it would look the same whether pressed or not. You will have to use the CBitmapButton class, however, which derives from CButton. http://msdn.microsoft.com/en-us/library/a3y45xs0.aspx

There are 4 states of the button: UP, DOWN, FOCUS, DISABLED and each can have its own image (or not). http://msdn.microsoft.com/en-us/library/6y6acs49.aspx