Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Any ideas on how to do that?

My idea was to create an CDialog, load an bmp-image that fills the whole dialog. This bmp-image would be how my program should look like. The picture would contain buttons. Here i will make an CButton owner-draw-class where i show a new picture (on that area) when the button is pressed. When the button is no longer pressed, the CButton should be transperant/invisible.

It is the last part that is my problem. I dont know how to restore/redraw the dialog's bmp-image from the cbutton. Any ideas?

Kind regards
Ole
Posted

1 solution

Never mind, I just copied the original background and display that when the button should be invisible. Like:

Transparent ListBox[^]

I would just be smarter if I could get the parent-window (the dialog) to redraw the area where the button is placed... without the button getting a redraw-command.

Kind regards

Ole
 
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