Tech Support > Microsoft Windows > Development Resources > Display bitmap on top of another bitmap (newbie question)
Display bitmap on top of another bitmap (newbie question)
Posted by Timo on June 1st, 2004


I have this problem: I have a dialog, which has big bitmap as a
"backround", covering almost all of the dialog. The bitmap is placed
to dialog with
MS Visual C++ 6.0 resource editor, using Picture control. However,
depending
on the state of my application, I want to place another, smaller
picture on
top of the "backround" picture, and also remove it when certain event
occurs.

How can I do this? Can this be done by putting another picture control
on
top of the backround picture, and programmatically setting picture to
it?
And how can I programmatically set/remove bitmap to/from picture
control?
The foreground picture should be transparent, i.e the borders of
picture
control shouldn't be visible.

By reading Win32 API docs, I also figured out that I could place a
button
on top of my picture, and send a BM_SETIMAGE to the button to set an
image.
Docs state that lParam is handle to bitmap. How do I load the bitmap
and get handle to it?


Thanks in advance,
Timo


Similar Posts