Caption Bar Color!

This is a discussion on Caption Bar Color! within the Windows Programming forums, part of the Platform Specific Boards category; Hi guys, do you know a way of setting the window caption bar to the default active color? I know ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    3

    Caption Bar Color!

    Hi guys, do you know a way of setting the window caption bar to the default active color? I know of the function DrawCaption(), but I don't think I can use it on a dialog box (therefore it has no procedure, and I would like to avoid having a WS_PAINT for each one of my windows.
    My app can draw several windows at the same time and Im trying to avoid (fake) them from 'losing' their focus.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You should be able to use GetWindow() to get your dialog's HWND. I'm sure you could use subclassing to handle the painting part. However, there is probably a better way. Why not use a window instead of a dialog?

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >> Why not use a window instead of a dialog?

    Cant use MSVC++ resource editor to create window

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Critique my lighting model.
    By psychopath in forum Game Programming
    Replies: 4
    Last Post: 08-12-2006, 07:23 PM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  3. Start bar color in WinXP
    By confuted in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 07:18 AM
  4. Updating bar caption >
    By slx47 in forum C++ Programming
    Replies: 1
    Last Post: 05-12-2002, 05:49 PM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM

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