Click here to Skip to main content
15,886,038 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all ,

My query is like I have a button in a mfc program I have also put an Bitmap on it .Now what is need is whenever a button is clicked it should show the impression of button cliked so that it should show some sort of change in colors or transparency so that user can know that he/she has clicked the button .How can I do that ?

I tried to load a different Bitmap on button cliked and then reload the previous bitmap but it did not help .


Thanks ,
Pradeep Sharma
Posted

1 solution

You can use CMFCButton::SetImage to put up to three Images
on a Button for normal, selected and disabled state.

http://msdn.microsoft.com/de-de/library/bb984522.aspx[^]
 
Share this answer
 

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