white border on XP Buttons

This is a discussion on white border on XP Buttons within the Windows Programming forums, part of the Platform Specific Boards category; ok i have a app with a black background and im using the xp manifest to get the xp styled ...

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    white border on XP Buttons

    ok i have a app with a black background and im using the xp manifest to get the xp styled buttons and so on
    only problem here is that there is a white border around the buttons.
    does any one no how to change the border to black.thanks

  2. #2
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Well, your best bet is to owner draw the button.

  3. #3
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    how do you do that.
    sorry only a 15 year old whos been doing api around a month

  4. #4
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Give the button a BS_OWNERDRAW style.
    Now just handle the WS_DRAWITEM message in your window procedure.

    You may want to read up on GDI.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with program
    By HAssan in forum C Programming
    Replies: 8
    Last Post: 06-10-2007, 08:05 PM
  2. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  3. Windows XP regression over time
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-17-2002, 09:49 AM
  4. Window XP buttons
    By monkeymon in forum Windows Programming
    Replies: 7
    Last Post: 04-29-2002, 10:40 AM
  5. Replies: 3
    Last Post: 04-04-2002, 04:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21