If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

the red part disappeared at once as the bmp was loaded, I just can not make the bmp and the red part I marked show at the same time, can anyone help me with this ,thank you very much,
the following is part of my code to load the bmp:

Re: show a bitmap in MFC

Write your own class derived from CStatic. In its WM_PAINT message handler draw bitmap, and then red overlay over it. There are several ways to draw bitmap, for example, you can use StretchDIBits function.
To use this class, create CStatic dialog member variable with MFC Class Wizard, and replace CStatic type with your own class.