Thread: white border on XP Buttons

  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
    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
    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, 07: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, 10: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, 05:27 PM