Article View: borland.public.cppbuilder.nativeapi
Article #3306Re: Load Image with LoadResource
From: Bob Gonder
Date: Sat, 15 Jul 2006 17:30
Date: Sat, 15 Jul 2006 17:30
25 lines
1755 bytes
1755 bytes
David Carbon wrote: >It's my first post. I try use alphabitmaps in a RC File, but Borland >Resource Compiler say "Invalid bitmap format". >I think on other possibility, load the bitmap how LoadResource. > >I have borland c++ 5. > >If have a rc file: > >test IMAGE "test.bmp" <- testbmp is a 32bits AlphaBitmap > >How can load this bitmap using LoadResource and Get the properly handle for >paint ??? You might look at this http://www.codeguru.com/cpp/w-d/dislog/splashscreens/article.php/c5023/ Which seems to imply this usage: test BITMAP "test.bmp" alpha BITMAP "alpha.bmp" hTest = LoadBitmap( hInstance, "test"); hAlpha = LoadBitmap( hInstance, "alpha");
Technical Details
Message-ID:
<qg7ib21jk6etgegqfpvo6kkbaa6vb33l0g@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44b8cb9b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,43af6567608e0dc9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Load Image with LoadResource Date: Sat, 15 Jul 2006 10:30:29 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <qg7ib21jk6etgegqfpvo6kkbaa6vb33l0g@4ax.com> References: <44b8cb9b$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.147.52 X-Trace: newsgroups.borland.com 1152984630 67.77.147.52 (15 Jul 2006 10:30:30 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail