How to create a Flat Button in WinAPI with visual style
I wanted to create a f开发者_开发百科lat image push button like the Windows 7 mute button.
Here's the picture: flat button
When mouse hover it(display border): flat button hover
I tried to use BS_FLAT style, but nothing changed. My code is using visual style. When I try BS_FLAT without visual style, it does look flat, but still has a one pixel border.
So I want the button to look flat and without border, but when mouse hover it, it become a normal button. How to achieve this?
Create toolbar with one button. When creating use TBSTYLE_FLAT
style. I think also you will need CCS_NOPARENTALIGN | CSS_NORESIZE | CCS_NODIVIDER
style bits.
精彩评论