Re: newbie problem: mirror display driver

nospam_at_cristalink.com
Date: 07/27/04


Date: Wed, 28 Jul 2004 11:05:54 +1200

If a window is invisible, it's likely not to paint itself at all. If a
window is partially visible, it's likely to paint its visible region only. A
GDI window determines the region to paint with GetUpdateRgn() or
GetUpdateRect(). No mirror driver will see the window content which is not
painted.

"Gil" <gil_lederman@hotmail.com> wrote in message
news:uZ1JWrCdEHA.3896@TK2MSFTNGP10.phx.gbl...
> I'm trying to solve what seemed at first a very simple problem - I want to
> capture the graphic contents of a window on the desktop. now, its easy
> enough when the window is visible on the screen, but for the life of mine
> I
> couldn't do it if part or all of the window was off-screen. unstable and
> unreliable API hooking tricks was the best I could do, and yet the results
> were poor.
>
> Now, I was led to believe that perhaps a mirror display driver is the
> correct way to go, and I have a few questions:
>
> 1. As I have no previous experience with windows driver development, I'd
> much rather not get into it if I don't absolutely have to. is there some
> simple user-mode solution to this seemingly simple problem, that I am
> missing?
>
> 2. How would I accomplish this with a mirror display driver? can I just
> define a larger surface on the DrvEnableSurface() and the system would
> send
> rendering operations to my driver for windows that are off-screen yet
> inside
> the larger clip region that I defined?
>
> 3. I'm running the sample from the 2003 ddk on an XP machine, and there
> are
> some noticeable side-effects. pull-down menus seem to be broken, and there
> are minor changes to the appearance of the desktop. is this an expected
> and
> documented behavior, or a bug?
>
>
> Cheers, Gil.
>
>



Relevant Pages

  • Re: Update on new paint job and leather seats - Trip back home
    ... we were occupied with inspecting the plane ... plane cover back on and to measure the pilot's side window but had to ... AOGPaint gave us some extra paint to paint the rivets for this new ... or not, the paint scheme was decided the last minute, the night before ...
    (rec.aviation.piloting)
  • Re: Joe User wrote:=========================================To view the complete
    ... Is this the correct NG to ask questions about Paint? ... "To turn off the selection box, ... There is a scroll bar. ... On the display properties window click the Settings tab. ...
    (microsoft.public.windowsxp.general)
  • Re: Invalidating a region and having only that region drawn
    ... the logical content of a window. ... The job of a paint handler is *just* to ... You should remember that Windows itself can invalidate any part of your ... >> is to run the OnPaint override which in turn kicks of the Paint event. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Slow WM_PAINT requires subsequent UpdateWindow()
    ... In your paint handler, are you using the DC provided in the PAINTSTRUCT? ... Are you following ther documentation for BeginPaint and EndPaint like they ... A test to see how you are drawing it is to obscure the window by dragging it ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Difference WM_PAINT XP/CE
    ... there's a separate queue for paint requests. ... message loop or window procedure for the underlying window is handling ...
    (microsoft.public.windowsce.app.development)