Changing progressbar colors

 

horizontal rule

Back Home Next

Author Aart Onkenhout
Date 02-08-2004

 

You can easily change the colors of a progressbar by using:

 

Constant Long    WM_USER = 1024

Constant Long    PBM_SETBARCOLOR = WM_USER + 9

Constant Long    CCM_FIRST = 8192

Constant Long    CCM_SETBKCOLOR = CCM_FIRST + 1

 

Send( Handle( <progressbar> ), PBM_SETBARCOLOR, 0, Rgb( 251, 230, 148 ) )
Send( Handle( <progressbar> ), CCM_SETBKCOLOR, 0, Rgb( 232, 127, 8 ) )