#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    32
    Rep Power
    13

    Question win32 button style question


    Hey,
    When I specify BS_FLAT as a style for my button, using win32 and c, it adds a border around my button. Does anyone know how to get rid of that border? BTW, I'm using BS_PUSHBUTTON.

    Thanks
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,616
    Rep Power
    4247
    You can add BS_OWNERDRAW to the button style flags. Then you'll get messages when you need to redraw the button. You can do whatever you want with the button drawing at this point. See the documentation for CButton::DrawItem() for more information.

IMN logo majestic logo threadwatch logo seochat tools logo