🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to use BitBlt with a HBITMAP handle ?

#920
From: Bruce Salzman
Date: Mon, 17 Dec 2007 17:25
16 lines
1461 bytes
"Asger Joergensen" <junk@Asger-P.dk> wrote in message 
news:MPG.21d0abd3ce2daf26989982@newsgroups.borland.com...
> Hi there
>
> I have a situation where I have a HBITMAP handle
> and I would like to paint this Bitmap to a Canvas,
> but BitBlt takes a HDC.
>
> So how do I get a HDC from a HBITMAP ?
>

You need to create a memory dc and select the HBITMAP into it first.

-- 
Bruce
Technical Details
Message-ID: <4766b11c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!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: " Bruce Salzman" <bruce@nospam.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <MPG.21d0abd3ce2daf26989982@newsgroups.borland.com>
In-Reply-To: <MPG.21d0abd3ce2daf26989982@newsgroups.borland.com>
Subject: Re: How to use BitBlt with a HBITMAP handle ?
Date: Mon, 17 Dec 2007 11:25:49 -0600
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="utf-8";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 75.86.154.191
Message-ID: <4766b11c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1197912348 75.86.154.191 (17 Dec 2007 09:25:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail