If I create a memory device context CreateCompatibleDC()
and then SelectObject()
a bitmap I created to it. Can I just DeleteObject()
the old bitmap returned by SelectObject()
and let the device context delete the bitmap I created? Or do I have to keep the old bitmap around and then when no longer needed (destructor) select the old bitmap and delete the one I created? Just seems like a waste of memory to keep a bitmap around that is never going to be used.
TIA!!