Progress meter color

This is a discussion on Progress meter color within the Windows Programming forums, part of the Platform Specific Boards category; I have been trying to create two progress meters, each with a different color. No luck, so far. Can anyone ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    39

    Progress meter color

    I have been trying to create two progress meters, each with a different color. No luck, so far. Can anyone offer a suggestion?

    thanks in advance

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Set the 'bar' colour to green:
    Code:
    SendMessage(hProgress, PBM_SETBARCOLOR, 0, (LPARAM)RGB(0,128,0));
    Set the background colour to purple:
    Code:
    SendMessage(hProgress, PBM_SETBKCOLOR, 0, (LPARAM)RGB(200,0,200));
    where hProgress is the handle of your progress bar.

    edit: formatting
    Last edited by Ken Fitlike; 11-25-2002 at 05:28 PM.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Ken Fitlike,

    Excellent solution!

    Kuphryn

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    39
    Thanks Ken, I thought no one had a solution.

    Funny, there is no mention of PBM_SETBARCOLOR in the Win32 programmers reference.....hmmmm

    thanks again

    Echidna

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. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 06:06 PM
  3. My opinion on skin color
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 07-11-2003, 01:12 PM
  4. [WinAPI] Developing a color customizable program
    By Templario in forum Windows Programming
    Replies: 6
    Last Post: 02-04-2003, 06:12 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