Article View: borland.public.cppbuilder.nativeapi
Article #182Re: Loading x48 icons with ExtractIconEx...
From: Mike Collins
Date: Tue, 01 Jul 2008 16:55
Date: Tue, 01 Jul 2008 16:55
40 lines
2543 bytes
2543 bytes
Cheers for the offer... As you've said, the default icon is basically determined by the first icon that the OS comes across - i really need to mimic this... As for your second point, I'll only ever have programs in my listing so there will never be a need to display any file associations. I'll stick a demo app on the .attachments group if you want to have a look. Best regards, Mike "Bob Gonder" <none@nowhere.invalid> wrote in message news:bdgk64p9sfo43qu90s1plgmf08v9h4m6rp@4ax.com... > Mike Collins wrote: > >>1) I want to extract and display the default icon that is displayed for an >>executable program. In BCB this would be "MAINICON" and in most other >>applications I think it is the icon with the ID 101 (but i'm not sure >>here). > > No, the name and number have no (external) meaning. > The standard icon is the first icon, as the link mentioned. > >>I don't want to get the shells associated icon which is displayed if not >>icon is embedded for a program. Therefore, both SHGetFileInfo and >>ExtractAssociatedIcon will not work, becuase both look at the association >>between the .exe extension and the shell icons. > > So you would rather have No icon for a non-icon exe or data file? > >>2) The problem with using LoadImage is that i need to provide it with > > Rats. > Do you have a (publicly available) 48x48 icon-containing-exe > I can play with? I suppose I could write one. I'll be at the > Dr's all day, so it'll be Wed before I can mess with it. > >
Technical Details
Message-ID:
<486a50aa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<486960ab@newsgroups.borland.com> <d73j6491uh8j0ess67ai2ht5jdkj5remsf@4ax.com> <486a0d3d$1@newsgroups.borland.com> <bdgk64p9sfo43qu90s1plgmf08v9h4m6rp@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bcbc54027817c35e X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <486960ab@newsgroups.borland.com> <d73j6491uh8j0ess67ai2ht5jdkj5remsf@4ax.com> <486a0d3d$1@newsgroups.borland.com> <bdgk64p9sfo43qu90s1plgmf08v9h4m6rp@4ax.com> Subject: Re: Loading x48 icons with ExtractIconEx... Date: Tue, 1 Jul 2008 16:55:19 -0000 Lines: 42 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: 78.148.201.251 Message-ID: <486a50aa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214927018 78.148.201.251 (1 Jul 2008 08:43:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail