I have used Visual Basic 6 in the past (LOONG ago), and it had a control called PictureBox where you could just draw stuff to, get a device context if you wanted, etc. I'm now trying to find out how to have a similar "control" in pure GDI/WinApi (no MFC, .net, atl, gdi+, etc). I was using an owner-draw button control, but you can't (easily) get the mouse coords when it is clicked, so I figured I needed some other control. I tried a static control, but that one has no owner-draw support. I tried handling WM_PAINT, but, as far as I know (after googling for hours), there is no way to use it to update just one area of the client or just a single HWND.
So, what I'm asking is, how do people animate or blit select areas of a window, be it a control or whatever, using pure GDI and Windows API? I know MFC has something called subclassing, but since MFC is just a wrapper for Windows API there MUST BE a way to do this without it (also as I said earlier, MFC is not an option).