🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: 256 color HIcon -> TimageList = ugly bitmap?

#5258
From: boost
Date: Wed, 21 Sep 2005 23:49
37 lines
1990 bytes
ups... sorry!

boost

Remy Lebeau (TeamB) wrote:
> "boost" <boost@boostnetwork.net> wrote in message
> news:4331e8af$1@newsgroups.borland.com...
> 
> 
>>borrowed from google:
> 
> 
> Converted to C++:
> 
>     void __fastcall ConvertTo32BitImageList(TImageList *ImageList)
>     {
>         if( ImageList )
>         {
>             TImageList *TmpList = new TImageList(NULL);
>             try
>             {
>                 TmpList->Assign(ImageList);
>                 ImageList->Handle = ImageList_Create(ImageList->Width,
> ImageList->Height, ILC_COLOR32 | ILC_MASK, 0, 4);
>                 ImageList->AddImages(TmpList);
>             }
>             __finally
>             {
>                 delete TmpList;
>             }
>         }
>     }
> 
> 
> Gambit
> 
> 
Technical Details
Message-ID: <4331f11e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43307111$1@newsgroups.borland.com> <43307cf4$1@newsgroups.borland.com> <4330f1bf$1@newsgroups.borland.com> <4331e8af$1@newsgroups.borland.com> <4331eeef$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,920d355696b18360
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 22 Sep 2005 01:49:18 +0200
From: boost <boost@boostnetwork.net>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: 256 color HIcon -> TimageList = ugly bitmap?
References: <43307111$1@newsgroups.borland.com> <43307cf4$1@newsgroups.borland.com> <4330f1bf$1@newsgroups.borland.com> <4331e8af$1@newsgroups.borland.com> <4331eeef$1@newsgroups.borland.com>
In-Reply-To: <4331eeef$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.58.118.161
Message-ID: <4331f11e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127346462 83.58.118.161 (21 Sep 2005 16:47:42 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail