Creating an image based control with a transparent background in WINAPI C++?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi, I want to create a control(like a button) but not with straight edges. What I basically want it to look like is a floating icon/image with a transparent background that will respond to clicks like a button.

Heres a picture example(the red icon to the left of the minimize button):

<img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/190170

I tried creating a button using CreateWindow(....) then setting an image to it, but it didnt work and I dont think thats the way to go.

Thank you

View the full article
 
Back
Top