Re: Transparent child window



Kellie Fitton wrote:
On Jul 21, 12:37 pm, Edward Diener
<eddielee_no_spam_h...@xxxxxxxxxxxxxx> wrote:
I have a child window with a light-colored background color brush, which
I want to be transparent so that the underlying parent window shows
through the background. A layered window does not work with a child
window. Is there any way I can do this with a child window ?



Hi,

Have you tried the following Windows style to create
a transparent window:

CreateWindowEx() WS_EX_TRANSPARENT

This does not work at all. I am not painting the window but just creating it with a brush of a certain color. When I show the window, even with the WS_EX_TRANSPARENT style specified as the extended style when the window is created, the window completely obscures its parent window.


Or,

SetWindowRgn()

I do not understand how transparency is to be achieved using SetWindowRgn().
.



Relevant Pages