🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems with LoadImage and ResInstLoad

#5708
From: Remy Lebeau (TeamB)
Date: Wed, 20 Jul 2005 02:26
24 lines
1742 bytes
"Mike Collins" <its@thebottomofthe.post> wrote in message
news:42dda33d@newsgroups.borland.com...

>       istTBIcoHot->Clear();
>       istTBIcoHot->ResInstLoad((unsigned int)hGfxHandle, rtBitmap,
> "TOOLBAR_HOT_24_256", clFuchsia);
>
> However, the images are not loaded correctly, there shown in 16-bit
colour,
> not 256 (looks crap)

How exactly are you using the TImageList?  Maybe the display, not the
ImageList, only supports 16 colors.  Did you try extracting one of the
bitmaps from the ImageList to see what it looks like?

>       istTBIcoHot->Handle = (unsigned int)LoadImage(hGfxHandle,
> "TOOLBAR_HOT_24_256", IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE);

You cannot assign the Handle of a TImageList to be the image loaded by
LoadImage().  The Handle expects an HIMAGELIST, not an HBITMAP


Gambit
Technical Details
Message-ID: <42ddb6ff$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42dda33d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3637b9fcce8b4510
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: <42dda33d@newsgroups.borland.com>
Subject: Re: Problems with LoadImage and ResInstLoad
Date: Tue, 19 Jul 2005 19:26:40 -0700
Lines: 26
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: <42ddb6ff$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1121826559 68.69.17.41 (19 Jul 2005 19:29:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail