🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ListView Icons

#15777
From: Remy Lebeau (TeamB)
Date: Thu, 19 Jun 2003 02:30
18 lines
1630 bytes
"Bob" <bob@spam.com> wrote in message
news:3ef10bc3$1@newsgroups.borland.com...

> I am trying to create a list view with a list of files and
> their icons.  The view right now displays the first icon
> I add to the image list on all files. I want it too look like
> the list view in explorer.

Rather than using a separate image list that you populate yourself manually,
just use the OS's own global image list instead.  It already has it
populated at all times with the icons for files and other miscellaneious
system objects.  You can use SHGetFileInfo() to retrieve the HIMAGELIST
handle of the system image list, and also to retreive a particular file's
icon index within that list.


Gambit
Technical Details
Message-ID: <3ef11f72$1@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!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef10bc3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c0b5f7c930a24ebf
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-18 19:32:07 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef10bc3$1@newsgroups.borland.com>
Subject: Re: ListView Icons
Date: Wed, 18 Jun 2003 19:30:56 -0700
Lines: 20
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: 207.175.226.26
Message-ID: <3ef11f72$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055989618 207.175.226.26 (18 Jun 2003 19:26:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail