The same logic applies to GDI bitmaps. When you create a GDI bitmap, you get anHBITMAP, which represents the bitmap. You can ask GDI to tell you where it put the bitmap pixels by callingGetObject: a pointer to the bits will be returned in thebmBitsmember, and you can use that...
#define DEBUG_NULLPTR_STRING "nullptr" (default) - controls how to print pointer-like objects (supporting static_cast<void const volatile *>(x.get())) when it is nullptr #define DEBUG_SMART_POINTER_MODE 1 (default) - print smart pointer as raw pointer address (e.g. 0xdeadbeaf) #define...