VC.NET: "import" some pixels from underneath a window

  • Thread starter Thread starter Wolfgang
  • Start date Start date
W

Wolfgang

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
 
Wolfgang said:
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.
 
Back
Top