Re: layered window
From: Ellers (ellers.bogus_at_ellerton.bogus.net)
Date: 08/11/04
- Next message: Mark: "Re: Example code for GetFontUnicodeRanges"
- Previous message: Dan Mitchell: "Re: My files don't work after I got new computer"
- In reply to: benben: "layered window"
- Next in thread: Ellers: "Re: layered window"
- Messages sorted by: [ date ] [ thread ]
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?
- Next message: Mark: "Re: Example code for GetFontUnicodeRanges"
- Previous message: Dan Mitchell: "Re: My files don't work after I got new computer"
- In reply to: benben: "layered window"
- Next in thread: Ellers: "Re: layered window"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|