In VC or VC++, suppose I have a simple window (a form). Is it
possible from that window to "see" what's underneath a particular
pixel?
Basically, I want to "import" some pixels underneath my window,
depending on color (or some other, similar properties).
For example, say I want to incorporate and display all green pixels
that may be underneath my window.
Can this be done? Thanks for any links or other information about
this.
Wolfgang
Goleta, CA
Tim Robinson - 23 Jan 2005 23:49 GMT
> In VC or VC++, suppose I have a simple window (a form). Is it
> possible from that window to "see" what's underneath a particular
> pixel?
[...]
Not directly. The pixels that make up a window cease to exist they are
obscured.
However, you may have some luck with the WM_PRINT message, assuming
you're using Windows XP. Sending this message asks a window to draw
itself into a DC that you provide.

Signature
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/