Re: layered window

From: Ellers (ellers.bogus_at_ellerton.bogus.net)
Date: 08/11/04


Date: Wed, 11 Aug 2004 21:37:30 +0200

benben wrote:
> Could anyone explain this? I wrote a program that uses a layered main window
> to make the window transluscent when it is deactivated and completely opaque
> when the user works on it. What is strange is whenever I have another window
> placed on top of my transparent window, there are two ugly and thick bands
> that go all the way across the transparent window within which everything
> becomes COMPLETELY TRANSPARENT. You can reproduce this by simply creating a
> simple "hello world!" windows application, just prior to the message pump
> add the following two lines:
>
> SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) |
> WS_EX_LAYERED);
> SetLayeredWindowAttributes(hWnd, 0, 200, LWA_ALPHA)

Wierd problem.

Can you post or upload a screenshot?



Relevant Pages

  • Re: Is it possible to force a covered window to repaint itself ?
    ... work well, to get stylus events? ... want a transparent window which captures all mouse/stylus events no matter ... One possibility would be to take a screenshot of the entire screen, ... this onto a fullscreen window that you have created. ...
    (microsoft.public.pocketpc.developer)
  • Re: Is it possible to force a covered window to repaint itself ?
    ... One possibility would be to take a screenshot of the entire screen, ... this onto a fullscreen window that you have created. ... Everything is OK with the transparent window design, ... covered window beneath it can repaint itself, stylus events are ...
    (microsoft.public.pocketpc.developer)
  • Window transparency dilemma
    ... I'm seeing some strange PM behavior that I can't quite understand, apparently relating to whether or not a window was created in a given process. ... I've been able to re-capture the bitmap underneath the window by triggering off of when my window's visible region changes ... My logic here is that if the user changes the Z-order of a window underneath my transparent window, my transparent window's visible region will change. ... WinSetVisibleRegionNotify(myWin, TRUE); ...
    (comp.os.os2.programmer.misc)
  • Re: Redraw Transparent Window
    ... I listed the main points and styles of my transparent window here: ... you should only get the underlying window to redraw ... BitBlt from a memory device context (i.e., get the underlying window to draw ...
    (microsoft.public.win32.programmer.ui)
  • Re: Window transparency dilemma
    ... After calling WinBeginEnumWindows, ... My transparent window has the desktop as ... pair of messages to my transparent window. ... window ULONG flag), beg the windows underneath to draw themselves, do ...
    (comp.os.os2.programmer.misc)