Article View: borland.public.cppbuilder.nativeapi
Article #3172Re: LoadImage Vs ExtractIcon
From: Remy Lebeau (TeamB)
Date: Thu, 31 Aug 2006 23:19
Date: Thu, 31 Aug 2006 23:19
29 lines
2044 bytes
2044 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message news:44f7640a@newsgroups.borland.com... > Still can't get it to work. I've tried removing the flags altogether > and just specifying the hight and width but it still fails. Does it still report that th icon can't be found? If so, then you are still likely specifying the wrong ID to begin with. Or it might be that you are trying to retreive an icon that does not have a version available for the current display resolution. > I know the icons are there because i've used microangelo and other > resource hackers to examine them. WinXP Home and Pro and 2k3 > all have 238 icon objects and the Id's 132 & 163 are perfectly valid. > I don't understand how to use the api if i do specify LR_DEFAULTSIZE As I mentioned earlier, if you use that flag, then you have to set the sizes to 0 so that the OS can pick them. > but want to load a specific size icon i.e. if i want to display the x16 or x48 icon. If you want to load a specific-sized icon then DO NOT specify the LR_DEFAULTSIZE flag. Gambit
Technical Details
Message-ID:
<44f7707d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44f6ea84$1@newsgroups.borland.com> <44f7214f$1@newsgroups.borland.com> <44f7640a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b9f657fbba67ecb4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44f6ea84$1@newsgroups.borland.com> <44f7214f$1@newsgroups.borland.com> <44f7640a@newsgroups.borland.com> Subject: Re: LoadImage Vs ExtractIcon Date: Thu, 31 Aug 2006 16:19:22 -0700 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44f7707d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1157066877 68.69.17.41 (31 Aug 2006 16:27:57 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail