Copying Bitmap Resources without Creating HDC's

This is a discussion on Copying Bitmap Resources without Creating HDC's within the Windows Programming forums, part of the Platform Specific Boards category; Hi I am running into a problem with my windows based program. I am using a Hbitmap as a back ...

Copying Bitmap Resources without Creating HDC's

Hi I am running into a problem with my windows based program. I am using a Hbitmap as a back buffer before blitting it onto the screen. My problem is I want to load bitmap resources onto seperate bitmaps before blitting them onto the back buffer. Can I do this without having to put each indivudual bitmap into a seperate HDC and then blitting them across.

In short can i load a bitmap resource file and then copy it into a HBITMAP already in a HDC??

>>can i load a bitmap resource file and then copy it into a HBITMAP already in a HDC<<

No.

If you need better performance than the next-to-none offered by gdi, which is really only good for gui programming, despite the illusion of decent performance afforded by fast, modern hardware, then you should seriously consider using directx or opengl.