🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Loading a 16x16 icon from resource

#16445
From: Thorsten Kettner
Date: Tue, 13 May 2003 14:36
15 lines
1341 bytes
Hi,
I am not able to load my 16x16 icon from my res file. I always
get them as 32x32. Here is my code:

  HICON hIcon = LoadImage(HInstance, MAKEINTRESOURCE(ID_SMALLICON), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);

I have tried zeros instead of 16 and tried also other flags, but
nothing helps.

I am using BCB6 ent. German, Build 10.166 on Win NT 4.00.1381.

Who can help?
Thanx in advance.
Thorsten.
Technical Details
Message-ID: <3ec102d2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b203a5a9fd734f5,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-13 07:46:28 PST
From: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Subject: Loading a 16x16 icon from resource
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.193.58 80.85.193.58    
X-Forwarded-For: unknown, 129.0.6.11
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ec102d2$1@newsgroups.borland.com>
Date: 13 May 2003 07:36:02 -0700
X-Trace: newsgroups.borland.com 1052836562 207.105.83.65 (13 May 2003 07:36:02 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail