Article View: borland.public.cppbuilder.nativeapi
Article #9707Re: SHGetFileInfo, not getting full list
From: Jaepil Kim
Date: Thu, 17 Jun 2004 23:38
Date: Thu, 17 Jun 2004 23:38
30 lines
1714 bytes
1714 bytes
Just understood how this works.
I just realized that the system's Icon list is directly assigend. So
whenever i call SHGetFileInfo() to find IconIndex of a file. The
function not only returns the index but also add the icon to the system
icon list.
Thanks =)
Jaepil Kim wrote:
> Hi
>
> I m trying to get a full list of icons with following code.
>
> The function works but it only gives me 5 icons. I m not sure if that's
> expected behaviour. Do i add individual icons per unique file?
>
> SHFILEINFO SHFInfo;
>
> ImageListSmall->ShareImages = True;
> ImageListSmall->Handle = SHGetFileInfo("", 0, &SHFInfo,
> sizeof(SHFILEINFO), SHGFI_SYSICONINDEX | SHGFI_SMALLICON);
>
>
> Regards,
>
>
> Jaepil Kim
Technical Details
Message-ID:
<40d22b7c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40d2296a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6ba1692660f4a4ba X-Google-Attributes: gid10cc67,public Date: Fri, 18 Jun 2004 11:38:47 +1200 From: Jaepil Kim <pit@paradise.net.nz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: SHGetFileInfo, not getting full list References: <40d2296a@newsgroups.borland.com> In-Reply-To: <40d2296a@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 210.86.92.230 Message-ID: <40d22b7c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087515516 210.86.92.230 (17 Jun 2004 16:38:36 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail