How to create a non rectangular button that still have all the properties and event and the normal button?
Thanks.
Printable View
How to create a non rectangular button that still have all the properties and event and the normal button?
Thanks.
Attached is an example that may help you.
lol, the border change one is creative
Those aren't really changed shape wise. They just have a picture that fakes it. If you want to actually change the window and clipping region to make the button round, you can use the region APIs to make it for you. This isn't perfect, but you can see that the button is really round here. You'll just need to play with an image a bit, or use other regions. There's also a rectangular region function (CreateRectRgn), and one to make rounded corner rectangular regions (CreateRoundRectRgn).