|
-
October 29th, 2009, 12:10 AM
#1
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
-
October 29th, 2009, 03:36 AM
#2
Re: CButton without black border
I wonder why in this case you need a button at all? 
A simple static control (so called "picture" control) with the SS_NOTIFY and either SS_BITMAP or SS_ICON styles is what you need!
Victor Nijegorodov
-
October 29th, 2009, 05:08 AM
#3
Re: CButton without black border
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|