Article View: borland.public.cppbuilder.nativeapi
Article #827Get the icon by using "SHGetFileInfo"...
From: remmurds
Date: Sun, 02 Dec 2007 00:26
Date: Sun, 02 Dec 2007 00:26
15 lines
1375 bytes
1375 bytes
Hi all, I use "SHGetFileInfo" to get the large icon from a file or dir and show it on an Image component: SHFILEINFO info; ImageList->Handle = SHGetFileInfo(FileName.c_str(), 0, &info, sizeof(info), SHGFI_LARGEICON | SHGFI_SYSICONINDEX); ImageList->ShareImages = true; ImageList->GetIcon(info.iIcon, ImageIco->Picture->Icon); But however the icon which i get is only 32*32 pixels, not the original 48*48, How do I get it? Thank you :)
Technical Details
Message-ID:
<4751fbc8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bee658860984a9b7,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "remmurds" <remmurds.bbs@ptt.cc> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Get the icon by using "SHGetFileInfo"... Date: Sun, 2 Dec 2007 08:26:43 +0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 140.130.34.19 Message-ID: <4751fbc8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1196555208 140.130.34.19 (1 Dec 2007 16:26:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail