Weird, regardless of whether I hide the window or not, SendMessage(WM_PRINT) to either $window(@pic).hwnd or FindWindowEx(hWnd, NULL, NULL, NULL) return nothing but garbage for me.
I checked the values with Spy++, and sending it to the window itself returns an image filled with the configured border color. Sending it to the child (which is supposed to be the thing containing the image, as argv[0] noted) only returns black.


Can you post your snippet that works? Maybe I'm messing up something else causing this (my snippet is still the same as posted above)