Share this post

Link to post

Share on other sites

monoceres 183

monoceres 183

I'm not 100% sure but i think that if a window is hidden/minimized then you cannot retrieve the pixel color as the window has not been "drawn".

There could be a way however but im just not aware of it.

This is only true versions of windows before vista, nowadays with dwm everything is drawn all the time (well maybe not totally true, but at least when it's minimized), on xp it can be still be done with the PrintWindow function.

Share this post

Link to post

Share on other sites

SmOke_N 199

SmOke_N 199

This is only true versions of windows before vista, nowadays with dwm everything is drawn all the time (well maybe not totally true, but at least when it's minimized), on xp it can be still be done with the PrintWindow function.

Share this post

Link to post

Share on other sites

monoceres 183

monoceres 183

It looks like it could work, however I don't think you'll ever get a result that is comparable to what you can get on vista/win7, and yeah hidden restored state is much better than that transparency stuff, seems like an dirty hack to me.

Oh and I hope you also tried the WM_PRINT message, I don't think PrintWindow and WM_PRINT are very different, but still