I need to be able to have a drawing behind a variety of native windows controls. I really want to use OpenGL because I'm familiar with OpenGL and it's hardware accelerated. I know that I can't draw my OpenGL functions directly to my main window because OpenGL on windows requires a dedicated HWND, so I got the idea to do my OpenGL rendering to a hidden HWND and use glReadPixels to get the raw pixel data.
Now I'm stuck. Is there a way to blit raw data onto an HDC? Or am I going to have to go through hoops to get this to work. I've been Googling for half an hour and haven't found a function to do what I want.