🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting SYS Icons

#4157
From: poojo hackma
Date: Fri, 10 Mar 2006 15:49
18 lines
2057 bytes
Hi Gambit,

I had to make a minor mod to get the code to run.  The compiler didn't want 
to cast from '_ITEMIDLIST*' to 'char*'.  I dug around and found how the 
example passed info to this routine, and used that technique:

  p = PChar(pShellItem->FullID); // static_cast<char*>(pShellItem->FullID);

Also, it looks like once I add the OnGetImageIndex event handler for lvPC 
(the virtual ListView), the virtual part appears to stop working, so I am 
only using the event for lvFtp (which not virtual ...because of my limited 
understanding of Shell Items used in the examples).

I have to confess:  I'm not entirely sure how to make a TListView behave as 
a virtual ListView, but it seems the OwnerData property needs to be true.

About "<DIR>":  Drats!  Looks like I need to manually ensure my TList has 
"<DIR>" in there. 
Technical Details
Message-ID: <4411a01a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <440ef041$1@newsgroups.borland.com> <440f3555$3@newsgroups.borland.com> <44108aa0$1@newsgroups.borland.com> <441090a9$1@newsgroups.borland.com> <4410abd3@newsgroups.borland.com> <4410cfe9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9456c511753bafd3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "poojo hackma" <poojo.com/mail>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <440ef041$1@newsgroups.borland.com> <440f3555$3@newsgroups.borland.com> <44108aa0$1@newsgroups.borland.com> <441090a9$1@newsgroups.borland.com> <4410abd3@newsgroups.borland.com> <4410cfe9$1@newsgroups.borland.com>
Subject: Re: Getting SYS Icons
Date: Fri, 10 Mar 2006 09:49:42 -0600
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-Antivirus: avast! (VPS 0610-1, 03/08/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 12.45.133.147
Message-ID: <4411a01a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1142005786 12.45.133.147 (10 Mar 2006 07:49:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail