Discussion:
transparency Dialog with non-transparency control
(too old to reply)
s***@gmail.com
2007-11-07 13:18:05 UTC
Permalink
hi, All:
Sorry for my poor Engish.
I have a question about transparent window.
Can I create a transparency Dialog with non-transparency control(such
as Edit, Button).

I know that the transparent can be finished
SetLayeredWindowAttributes. But, When I call this,
all the controls are transparent, it make me crazy.....

Thank you very much!
Christian Kaiser
2007-11-08 09:29:47 UTC
Permalink
Post by s***@gmail.com
Sorry for my poor Engish.
I have a question about transparent window.
Can I create a transparency Dialog with non-transparency control(such
as Edit, Button).
I know that the transparent can be finished
SetLayeredWindowAttributes. But, When I call this,
all the controls are transparent, it make me crazy.....
I guess not (transparency is done by drawing the dialog/window into a memory
bitmap which is drawn on the screen, so everything on it is transparent).


You need to create an additional (borderless, ...) window (not child!) which
contains the wanted control and is placed on top of the original control.

Ch.
s***@gmail.com
2007-11-08 14:38:07 UTC
Permalink
Thanks Christian!
It's a good idea.
Post by Christian Kaiser
Post by s***@gmail.com
Sorry for my poor Engish.
I have a question about transparent window.
Can I create a transparency Dialog with non-transparency control(such
as Edit, Button).
I know that the transparent can be finished
SetLayeredWindowAttributes. But, When I call this,
all the controls are transparent, it make me crazy.....
I guess not (transparency is done by drawing the dialog/window into a memory
bitmap which is drawn on the screen, so everything on it is transparent).
You need to create an additional (borderless, ...) window (not child!) which
contains the wanted control and is placed on top of the original control.
Ch.
Loading...