Article View: borland.public.cppbuilder.nativeapi
Article #201Re: Loading x48 icons with ExtractIconEx...
From: Mike Collins
Date: Wed, 02 Jul 2008 22:47
Date: Wed, 02 Jul 2008 22:47
26 lines
2045 bytes
2045 bytes
Bob, you the man!!!!! To be honest, I read that msdn article and just thought that it was ridiculously complicated and that there MUST be a shell method of doing the same thing. I really can't believe that it is that complicated and convoluted. If you consider the Explorer.exe must perform the same process for all programs in a given directory - it's a considerable overhead. I took the definitions for GRPICONDIRENTRY, GRPICONDIR and ICONIMAGE from the msdn article - I couldn't find any headers that contained them. I also defined the EnumNamesFunc as a static call back - it all works perfectly. I've also stuck in a check on e->bWidth to determine the icon size. Finally, I've free the TIcon once it's finished with. Excellent, many, many thanks Mike "Bob Gonder" <none@nowhere.invalid> wrote in message news:nion645ihefqe5tua1emrg8hl9jt11jb8r@4ax.com... > Mike Collins wrote: >
Technical Details
Message-ID:
<486bf494@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<486960ab@newsgroups.borland.com> <d73j6491uh8j0ess67ai2ht5jdkj5remsf@4ax.com> <486a0d3d$1@newsgroups.borland.com> <bdgk64p9sfo43qu90s1plgmf08v9h4m6rp@4ax.com> <486a50aa@newsgroups.borland.com> <nion645ihefqe5tua1emrg8hl9jt11jb8r@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> <486a50aa@newsgroups.borland.com> <nion645ihefqe5tua1emrg8hl9jt11jb8r@4ax.com> Subject: Re: Loading x48 icons with ExtractIconEx... Date: Wed, 2 Jul 2008 22:47:01 -0000 Lines: 28 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.149.52.48 Message-ID: <486bf494@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1215034516 78.149.52.48 (2 Jul 2008 14:35:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail