🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #180

Re: Loading x48 icons with ExtractIconEx...

#180
From: Bob Gonder
Date: Tue, 01 Jul 2008 15:14
23 lines
1946 bytes
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: <bdgk64p9sfo43qu90s1plgmf08v9h4m6rp@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeeder.dynfx.net!weretis.net!newsfeed.datemas.de!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <486960ab@newsgroups.borland.com> <d73j6491uh8j0ess67ai2ht5jdkj5remsf@4ax.com> <486a0d3d$1@newsgroups.borland.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: Bob Gonder <none@nowhere.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Loading x48 icons with ExtractIconEx...
Date: Tue, 01 Jul 2008 08:14:28 -0700
Message-ID: <bdgk64p9sfo43qu90s1plgmf08v9h4m6rp@4ax.com>
References: <486960ab@newsgroups.borland.com> <d73j6491uh8j0ess67ai2ht5jdkj5remsf@4ax.com> <486a0d3d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.146.152
X-Trace: newsgroups.borland.com 1214925266 67.77.146.152 (1 Jul 2008 08:14:26 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeeder.dynfx.net!weretis.net!newsfeed.datemas.de!news.isoc.lu!newsgroups.borland.com!not-for-mail