CButton without black border
Hi,
I am trying to create a button with bitmaps , like an on / off switch. Each time the user clicks the button the bitmap is changed correspondingly.
I have used CButton::Create to create the button at run time. Here are the styles:
Code:
BS_BITMAP|WS_VISIBLE |WS_CHILD | BS_NOTIFY | BS_FLAT
There is a black border aboud the button which i want to remove. I have tried using CBitmapButton, but it has the same black border around it.
How can i remove the border around the button?
thanks
Re: CButton without black border
I wonder why in this case you need a button at all? :confused:
A simple static control (so called "picture" control) with the SS_NOTIFY and either SS_BITMAP or SS_ICON styles is what you need!
Re: CButton without black border