Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to swap bitmaps in dialog at run time?

Status
Not open for further replies.

abhijit123

Programmer
Sep 26, 2002
17
US
I am developing a modeless dialog in which i have added:

CONTROL as picture , TYPE as bitmap and IMAGE as IDB_BITMAP1(bitmap previously added in resource).

Depending upon some condition I wish to swap the existing bitmap to new bitmap say(IDB_BITMAP2).

Can anyone give me the solution?
 
I'm not exactly sure what you mean but if you just want to display a different bitmap while the dialog is still open, simply draw another bitmap to the dialog at the specified time.

For example, you could initially display a particular bitmap in the dialog when it is created and displayed. Then, when you detect the mouse is over the bitmap, draw a different bitmap to the dialog. When the mouse leaves the bitmap rect/region, change it back to the original.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top