开发者

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

How to create a Flat Button in WinAPI with visual style

When mouse hover it(display border): flat button hover

How to create a Flat Button in WinAPI with visual style

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜