Thread: Changing a single Window's Title Bar Color

  1. #1
    Registered User
    Join Date
    Oct 2002

    Question Changing a single Window's Title Bar Color

    I'm creating an about popup box with the company logo etc and I would like to match the titlebar color to the Logo (Red) Is there a simple way to do this?

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    The colour of the caption bar is set according the users display settings. I don't know of any way to set it explicitly on a per window basis, although I'm not necessarily saying there is no way to do it.

  3. #3
    Join Date
    Jan 2002
    You can handle the WM_NCPAINT message and draw the caption any way you like - but you will have to draw the borders and any other part of the non-client area too.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Window without title bar
    By maxorator in forum Windows Programming
    Replies: 1
    Last Post: 10-16-2005, 12:26 AM
  2. single bar around vector
    By Silvercord in forum A Brief History of
    Replies: 1
    Last Post: 04-03-2003, 09:29 PM
  3. Changing the color of a control
    By Dharius in forum Windows Programming
    Replies: 2
    Last Post: 02-22-2002, 10:55 AM
  4. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM
  5. Title bar background?
    By SyntaxBubble in forum Windows Programming
    Replies: 7
    Last Post: 11-15-2001, 07:27 AM