Article View: borland.public.cppbuilder.nativeapi
Article #5806Re: Retriving Default Icons.
From: Remy Lebeau (TeamB)
Date: Mon, 04 Jul 2005 03:34
Date: Mon, 04 Jul 2005 03:34
21 lines
1455 bytes
1455 bytes
"qyte" <gyte@vivodinet.gr> wrote in message
news:42c895fd$1@newsgroups.borland.com...
> Is there a way to find out what is the default icon
> for Hard Disks But especially for CDROM drives?
SHGetFileInfo(), specifying the specific drive that you are interested in.
SHFILEINFO sfi = {0};
HIMAGELIST hSystemImageList = (HIMAGELIST) SHGetFileInfo(TEXT("D:\\"),
DWORD dwFileAttributes, &sfi, sizeof(sfi), SHGFI_ICON |
SHGFI_SHELLICONSIZE);
if( hSystemImageList != NULL )
{
// use sfi.hIcon as needed...
DestroyIcon(sfi.hIcon);
}
Gambit
Technical Details
Message-ID:
<42c8afe4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42c895fd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,499570fe4a26e674 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: <42c895fd$1@newsgroups.borland.com> Subject: Re: Retriving Default Icons. Date: Sun, 3 Jul 2005 20:34:33 -0700 Lines: 23 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: <42c8afe4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1120448484 68.69.17.41 (3 Jul 2005 20:41:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail