🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6388

Re: changing the color of a TProgressBar

#6388
From: Alan Bellingham
Date: Thu, 12 May 2005 11:53
25 lines
2064 bytes
Bernd Muent <kontakt@bmservices.de> wrote:

>PaoloItaly schrieb:
>
>> PBM_SETBKCOLOR, but not tested
>
>Now the constant is obviously defined, because I was able to compile it.
>But it has no effect:
>::SendMessage(progressWindow->pProgressBar->Handle,PBM_SETBARCOLOR,0x000000FF,0x000000FF);
>::SendMessage(progressWindow->pProgressBar->Handle,PBM_SETBKCOLOR,0x00FFFFFF,0x00FFFFFF);
>
>The result is a control with a red progress bar (fine!), but the 
>background is still gray :-(

Perhaps that's because you are setting the wParam value to a non-zero
value? (The documentation says "= 0; not used, must be zero".)

OK, probably not, but do set wParam to zero for both and see if it makes
a difference. Who knows - there may be undocumented behaviour happening?

More likely is that comctl32.dll is not version 4.71 or later.

Alan Bellingham
-- 
ACCU Conference 2006 - 19-22 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID: <qmg681lj0pooal6trippp1d171852jdn2l@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4280d305@newsgroups.borland.com> <4280da1b@newsgroups.borland.com> <42830561@newsgroups.borland.com> <4283362b@newsgroups.borland.com> <42833e80@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,74e86ce35584c760
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: changing the color of a TProgressBar
Date: Thu, 12 May 2005 12:53:30 +0100
Reply-To: alanb@episys.com
Message-ID: <qmg681lj0pooal6trippp1d171852jdn2l@4ax.com>
References: <4280d305@newsgroups.borland.com> <4280da1b@newsgroups.borland.com> <42830561@newsgroups.borland.com> <4283362b@newsgroups.borland.com> <42833e80@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.253
X-Trace: newsgroups.borland.com 1115898809 193.129.251.253 (12 May 2005 04:53:29 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail