I wanted to create a flat image button, for example, the Windows 7 mute button.
Here is the image: flat button

When the mouse hovers over it (display border): flat button rotation

I tried using the BS_FLAT style, but nothing changed. My code uses visual style. When I try to use BS_FLAT without a visual style, it looks flat but still has a border with one pixel.
So, I want the button to look flat and without a border, but when the mouse moved it, it became a regular button. How to achieve this?
source share