🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SHGetFileInfo and system image list

#16727
From: Dmitry Mikhilov
Date: Thu, 01 May 2003 20:22
29 lines
1914 bytes
"Nick B. Cassos" <nbc@no_spam.ath.forthnet.gr> wrote:
news:4mo2bv8uvumsmlbe932e84jh8sa459i6di@4ax.com...

> Strange, the snipet i posted is used in a file manager of mine (for
> two years), without problems in Win 98/Me/NT4/2K/XP.

As I mentioned, this code "nearly" works, but sometimes icon indexes are
wrong.

> The only think I didn't post is the assignments. Sorry, I should
> copy/paste a few more lines...

Thank you, but I understood that, these lines are a must anyway :)

>
> FShellIcons->Handle = ImageHandle;
> FShellIcons->ShareImages = true;
>
> LargeImages = FShellIcons;
> SmallImages = FShellIcons;
>
> ...
>
> No need to assign StateImages for simple viewing.

I use both SmallImages and StateImages simultaneously for representing
accordingly file state and file type in report style TListView.

Dmitry
Technical Details
Message-ID: <3eb1823e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eb0bdcd@newsgroups.borland.com> <18t1bv0lpjgqv1tblq09gh7u0j87hjtj2i@4ax.com> <3eb10399@newsgroups.borland.com> <4mo2bv8uvumsmlbe932e84jh8sa459i6di@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,577f7a686a96c6b6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-01 13:28:19 PST
From: "Dmitry Mikhilov" <dm1@fromru.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eb0bdcd@newsgroups.borland.com> <18t1bv0lpjgqv1tblq09gh7u0j87hjtj2i@4ax.com> <3eb10399@newsgroups.borland.com> <4mo2bv8uvumsmlbe932e84jh8sa459i6di@4ax.com>
Subject: Re: SHGetFileInfo and system image list
Date: Fri, 2 May 2003 00:22:46 +0400
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 195.131.110.226
Message-ID: <3eb1823e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051820606 195.131.110.226 (1 May 2003 13:23:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail