Changing a single Window's Title Bar Color

This is a discussion on Changing a single Window's Title Bar Color within the Windows Programming forums, part of the Platform Specific Boards category; I'm creating an about popup box with the company logo etc and I would like to match the titlebar color ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    7

    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
    Posts
    812
    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
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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, 01:26 AM
  2. single bar around vector
    By Silvercord in forum A Brief History of Cprogramming.com
    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

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