Having trouble keeping your DC intact? Here's an article on how to do this far more easily using ::SaveDC/::RestoreDC, or CDC::SaveDC/CDC::RestoreDC, as well as a C++ class to make it even easier.
This sample demonstarates how to create a bitmap, create a DC in MFC VC++, and then how to tell the DC to draw the bitmap .