🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#5259
From: Remy Lebeau (TeamB)
Date: Wed, 21 Sep 2005 23:37
29 lines
1750 bytes
"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: <4331eeef$1@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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,920d355696b18360
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43307111$1@newsgroups.borland.com> <43307cf4$1@newsgroups.borland.com> <4330f1bf$1@newsgroups.borland.com> <4331e8af$1@newsgroups.borland.com>
Subject: Re: 256 color HIcon -> TimageList = ugly bitmap?
Date: Wed, 21 Sep 2005 16:37:50 -0700
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4331eeef$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127345903 68.69.17.41 (21 Sep 2005 16:38:23 -0700)
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