Article View: borland.public.cppbuilder.nativeapi
Article #15778Re: ListView Icons
From: Bob
Date: Thu, 19 Jun 2003 02:53
Date: Thu, 19 Jun 2003 02:53
27 lines
2033 bytes
2033 bytes
I am looking at the Microsoft help on that function and it does not describe anything about a OS's global list. I am sure it exists, but I have no way to code it without documentation. "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message news:3ef11f72$1@newsgroups.borland.com... > > "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:
<3ef125cf$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ef10bc3$1@newsgroups.borland.com> <3ef11f72$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:55:48 PST From: "Bob" <bob@spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ef10bc3$1@newsgroups.borland.com> <3ef11f72$1@newsgroups.borland.com> Subject: Re: ListView Icons Date: Wed, 18 Jun 2003 22:53:24 -0400 Lines: 29 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: 24.154.67.163 Message-ID: <3ef125cf$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1055991247 24.154.67.163 (18 Jun 2003 19:54:07 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail