🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to use BitBlt with a HBITMAP handle ?

#921
From: Remy Lebeau (TeamB)
Date: Mon, 17 Dec 2007 17:38
17 lines
1477 bytes
"Asger Joergensen" <junk@Asger-P.dk> wrote in message 
news:MPG.21d0abd3ce2daf26989982@newsgroups.borland.com...

> So how do I get a HDC from a HBITMAP ?

CreateCompatibleDC(), SelectObject(), and SelectPalette(), and 
RealizePalette().

> I know I can assign the HBITMAP to a TBitmap->Handle
> but I'm not interested in an extra copy of the bitmap.

Assigning an HBITMAP to a TBitmap does not make a copy.  The TBitmap takes 
ownership of the HBITMAP instead.


Gambit 
Technical Details
Message-ID: <4766b489$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <MPG.21d0abd3ce2daf26989982@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c61a90c52be804ea
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <MPG.21d0abd3ce2daf26989982@newsgroups.borland.com>
Subject: Re: How to use BitBlt with a HBITMAP handle ?
Date: Mon, 17 Dec 2007 09:38:56 -0800
Lines: 19
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 207.178.157.90
Message-ID: <4766b489$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1197913225 207.178.157.90 (17 Dec 2007 09:40:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail