HELP on transparent window(UpdateLayeredWindow)!

Posted on 2005-02-24
Medium Priority
Last Modified: 2012-08-13
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!
Question by:holer
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 34

Accepted Solution

Slick812 earned 250 total points
ID: 13399030
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?
LVL 34

Expert Comment

ID: 13409031
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question