Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am working on a camera application and I have created a few owner drawn buttons. Can anyone help me make these owner drawn buttons transparent?

I am developing the application in VC++ (plain Win32, no MFC).

Posted
Updated 25-Nov-09 10:50am
v2

1 solution

Check out this article, which has a solution for making transparent controls that can be redrawn when the background changes (if you are layering your buttons over video, this could be useful). Sounds like you already know how to make owner drawn buttons, but just in case you don't, read this page. Also, "Transparent Button with Region and Anti-Aliased Edges" may or may not be what you're looking for, already built. "An easy way to create transparent button" is another example, but it apparently has memory leaks and doesn't redraw when the control is moved (maybe you can fix that up by reading the above article that redraws when the background is updated).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900