Article View: borland.public.cppbuilder.nativeapi
Article #14170Re: api & Screenshots?
From: Bob Gonder
Date: Wed, 03 Sep 2003 03:03
Date: Wed, 03 Sep 2003 03:03
18 lines
1813 bytes
1813 bytes
CC wrote: >although I was wondering in your example, what >is 'hBmp' that is passed into GetObject(), and how is it obtained? Handle to Bitmap. HBITMAP In my own code, I open an existing BMP and copy it to the window. BITMAP bm; hBmp = LoadBitmap(hInst, bitmapname); GetObject( hBmp, sizeof(BITMAP), &bm); In your case, you'd need to create a BMP of the appropriate size (figured from the screen dimentions) and pass it in so you can get a handle to it. I would think reading up on the "CreateDIBSection" portion of GetObject() would help. Something like this sounds promising... hBmp = CreateDIBSection(....); GetObject( hBmp, sizeof(BITMAP), &bm);
Technical Details
Message-ID:
<b1lalv0quif3ti6njjma3nal5u8pbdvhsi@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!12.120.28.37.MISMATCH!attla2!ip.att.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f549e70$1@newsgroups.borland.com> <bch9lv8jirl1qvkac2q02edgpdm0fpdphq@4ax.com> <3f551388@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,63984f9ae83df73a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-02 20:09:44 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: api & Screenshots? Date: Tue, 02 Sep 2003 20:03:32 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <b1lalv0quif3ti6njjma3nal5u8pbdvhsi@4ax.com> References: <3f549e70$1@newsgroups.borland.com> <bch9lv8jirl1qvkac2q02edgpdm0fpdphq@4ax.com> <3f551388@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.87 X-Trace: newsgroups.borland.com 1062558213 67.31.164.87 (2 Sep 2003 20:03:33 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!12.120.28.37.MISMATCH!attla2!ip.att.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail