4

I wanted to create a flat image push button like the Windows 7 mute button.

Here's the picture: flat button

enter image description here

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

enter image description here

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?

RRUZ
  • 134,889
  • 20
  • 356
  • 483
thenick
  • 55
  • 2
  • 5

1 Answers1

4

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.

pure cuteness
  • 1,635
  • 11
  • 26