Article View: borland.public.cppbuilder.nativeapi
Article #174Loading x48 icons with ExtractIconEx...
From: Mike Collins
Date: Mon, 30 Jun 2008 23:51
Date: Mon, 30 Jun 2008 23:51
27 lines
1804 bytes
1804 bytes
Hay all,
Got a little issue / problem. I have an event log that stores a list of
applications and programs that have been run. I'm using a GUI design that
displays a x48 icon that corrisponds to the application. Currently i'm
using ExtractIconEx() becuase this seems like the only to get the default
icon used for an applicaiton, i.e.
HICON hIconLarge[1];
ExtractIconEx(szAppPath.c_str(), 0, hIconLarge, NULL, 1);
if (hIconLarge[0])
{
// Use the icon in the GUI
::DestroyIcon(hIconLarge[1]);
}
- however, i only get the x32 icon. I can't workout retrieve the x48 icon.
I assum that i could extend the icon array and retrieve more large icons but
there doesn't seem to be anyway to determine exactly which icon size you are
getting.
Based on this, how does Explorer.exe load the correct, default, large icon
when you change the view to Titles.
Hope this makes sense.
Mike C
Technical Details
Message-ID:
<486960ab@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bcbc54027817c35e,start X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Loading x48 icons with ExtractIconEx... Date: Mon, 30 Jun 2008 23:51:22 -0000 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 NNTP-Posting-Host: 89.242.142.79 Message-ID: <486960ab@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214865579 89.242.142.79 (30 Jun 2008 15:39:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail