I want to create a bitmap in memory (not linked to any window) and then passing it around. I then want to paint to it (edit it), but I see that all the functions require an HDC.
I basically want to be able to use functions like FillRect() with this HBITMAP, but I can't because I have to pass an HDC and so the image will appear somewhere in the window.
I don't want to use libraries because it's just a template code, I have to keep it simple.