🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: System Icons

#3521
From: Jeff
Date: Wed, 07 Jun 2006 19:53
26 lines
1690 bytes
I only got 5 icons out of it when it contians 238?

Is this right?
SHFILEINFO fInfo;
imlMain->Handle = SHGetFileInfo("c:\\windows\\system32\\shell32.dll", NULL, 
&fInfo, sizeof(fInfo), SHGFI_SYSICONINDEX);

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:448720b8$1@newsgroups.borland.com...
>
> "Jeff" <Jeff@nospam.com> wrote in message
> news:448716d6$1@newsgroups.borland.com...
>
>> I've got a TListView component and would like to assign icons
>> to its items from the shell32.dll.  Any way to get the icons from
>> system libraries?
>
> Use the Win32 API SHGetFileInfo() function to retreive a handle to the
> Shell's Image List.  You can then assign that handle to a TImageList. 
> Make
> sure the TImageList's SharedImages property to set to true.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <44872e9b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <448716d6$1@newsgroups.borland.com> <448720b8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de14f1cb04eef46a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jeff" <Jeff@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <448716d6$1@newsgroups.borland.com> <448720b8$1@newsgroups.borland.com>
Subject: Re: System Icons
Date: Wed, 7 Jun 2006 13:53:00 -0600
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 198.68.195.218
Message-ID: <44872e9b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1149709979 198.68.195.218 (7 Jun 2006 12:52:59 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail