🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: api & Screenshots?

#14182
From: CC
Date: Wed, 03 Sep 2003 14:11
25 lines
2009 bytes
Bob, Thank you very much for your help - that's a great start!
Curt
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:b1lalv0quif3ti6njjma3nal5u8pbdvhsi@4ax.com...
> 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: <3f55f667$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!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f549e70$1@newsgroups.borland.com> <bch9lv8jirl1qvkac2q02edgpdm0fpdphq@4ax.com> <3f551388@newsgroups.borland.com> <b1lalv0quif3ti6njjma3nal5u8pbdvhsi@4ax.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-03 07:31:15 PST
From: "CC" <Xcurtc@tmscorp.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f549e70$1@newsgroups.borland.com> <bch9lv8jirl1qvkac2q02edgpdm0fpdphq@4ax.com> <3f551388@newsgroups.borland.com> <b1lalv0quif3ti6njjma3nal5u8pbdvhsi@4ax.com>
Subject: Re: api & Screenshots?
Date: Wed, 3 Sep 2003 09:11:28 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 208.254.250.201
Message-ID: <3f55f667$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062598247 208.254.250.201 (3 Sep 2003 07:10:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail