Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1965
  • Last Modified:

HELP on transparent window(UpdateLayeredWindow)!

Hi!
I try to create a layered window with some common controls on it, like a
button or an edit box.
The problem is that i use UpdateLayeredWindow to give a bitmap with alpha
transparency to my main window. And this is everything I see. My child
controls are not painted.
how can I use some common controls ("BUTTON", "EDIT", etc) or even other
more complex like a html view or other activx control?
Is there a way to force them to paint themselfs in a given DC? Or maybe to
make them ignore the fact that their parent is a layered window?

Please help me with a solution or someting!
Thanks!
0
holer
Asked:
holer
  • 2
1 Solution
 
Slick812Commented:
hello holer , , As far as I have read about, and used the  UpdateLayeredWindow( ) function, it does not seem to me, to be meant to do what you are asking for, . . ..  I have used  UpdateLayeredWindow for Layered window Fades , , and layered window animations, , , but if you draw on your form with  UpdateLayeredWindow( ) the system will not show any controls or child windows, only the Bitmap (I used a bitmap for mine) in the DC will be visible, even if you place another window in front and then put your form in front (have the system repaint it). As I understand it, this sort of overdraw was done on purpose, for animations or fades. . . so the alpha-blend bitmap will be shown without any child windows interfering with your animation,
When I used UpdateLayeredWindow for a form fade in, I had to call the  SetLayeredWindowAttributes( ) function to get my controls to show and "Normal" semi-transparent layered window painting behavior to start, with out the call to SetLayeredWindowAttributes( ), all I will ever see is the last paint by the  UpdateLayeredWindow( ) function.

Are you trying to do an animation or fade?
0
 
Slick812Commented:
you may can get some more help here at EE if you can state what you are trying to do . . . .
the effect or visual "Look" you want to get
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now