How to add controls?
I am using the UpdateLayeredWindow function to do per pixel alpha blending. It works great with a png file with alpha channel. (Yes, png does have an alpha channel.) To summarize what people have been saying in this thread. In order to do the transparency you load the png file into a DIB. The DIB can then be loaded into a CBitmap. If you are using .NET you can load it directly from the file. I am not so have to use the libpng library. I created a dialog app which I use to display the image. I used this code as a guide:
per pixel alpha blending example
Now that I have that working I need to know how to draw the controls I want on top of that. I want to make them ownerdraw, so if anyone has any good examples of that, I'd apreciate it. I gather I must draw onto the bitmap I create from the png file with the control images. I then will need to figure out how to handle click and key events.
I also got it working using the SetLayeredWindowAttributes function, but that only does alpha blending of the entire window to a single value, not per pixel. It will also do a transparancy color, but that looks bad since it doesn't anti-alias. But it does show the controls on the form.
Xargon