I'm trying to copy all pixels from a window's DC for some processing. I GetDC() the dc, and then use BitBlt to copy the pixels to a dc I created with CreateCompatibleDC. This works fine, except for the fact that the window must actually be visible (the app can't be minimized), and any other windows on top of the window that is being copied, is included in the copy.
How can I access the pixel data belonging ONLY to the window I want to copy the pixels from? I use SRCCOPY only, not CAPTUREBLT, as the raster operation.
How can I access the pixel data belonging ONLY to the window I want to copy the pixels from? I use SRCCOPY only, not CAPTUREBLT, as the raster operation.