Article View: borland.public.cppbuilder.nativeapi
Article #3525Re: System Icons
From: Jeff
Date: Wed, 07 Jun 2006 22:25
Date: Wed, 07 Jun 2006 22:25
38 lines
2338 bytes
2338 bytes
Code for image list (called in FormCreate):
SHFILEINFO fInfo = {0};
imlMainSmall->Handle = SHGetFileInfo("", 0, &fInfo,
sizeof(fInfo),SHGFI_SYSICONINDEX | SHGFI_SMALLICON);
imlMainSmall->ShareImages = true;
Test code for image display (called in FormShow):
for (int intIndex = 0; intIndex < imlMainSmall->Count; intIndex++)
{
lsiItem = lsvDrives->Items->Add();
lsiItem->Caption = IntToStr(intIndex);
lsiItem->ImageIndex = intIndex;
}
Are there any properties to the TImageList, other than ShareImages, that I
should be concerned with?
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:44875092$1@newsgroups.borland.com...
>
> "Jeff" <Jeff@nospam.com> wrote in message
> news:44874af9$1@newsgroups.borland.com...
>
>> Now I seem to still get 5 icons, but some are different than before?
>
> The code I have given you retrieves the entire System Image List. It is
> certainly not limited to 5 icons. When I just tested the code, the image
> list had 404 icons in it, as reported by the TImageList::Count property.
> Please show your actual code for how you are using the ImageList. What
> does
> the Count report for you?
>
>
> Gambit
>
>
Technical Details
Message-ID:
<44875268$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<448716d6$1@newsgroups.borland.com> <448720b8$1@newsgroups.borland.com> <44872e9b$1@newsgroups.borland.com> <44872fa9@newsgroups.borland.com> <44874af9$1@newsgroups.borland.com> <44875092$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: "Jeff" <Jeff@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <448716d6$1@newsgroups.borland.com> <448720b8$1@newsgroups.borland.com> <44872e9b$1@newsgroups.borland.com> <44872fa9@newsgroups.borland.com> <44874af9$1@newsgroups.borland.com> <44875092$1@newsgroups.borland.com> Subject: Re: System Icons Date: Wed, 7 Jun 2006 16:25:45 -0600 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 NNTP-Posting-Host: 198.68.195.218 Message-ID: <44875268$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1149719144 198.68.195.218 (7 Jun 2006 15:25:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail