🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: System Icons

#3520
From: Remy Lebeau (TeamB)
Date: Wed, 07 Jun 2006 18:45
14 lines
1350 bytes
"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: <448720b8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <448716d6$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <448716d6$1@newsgroups.borland.com>
Subject: Re: System Icons
Date: Wed, 7 Jun 2006 11:45:05 -0700
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <448720b8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1149706424 68.69.17.41 (7 Jun 2006 11:53:44 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail