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