Article View: borland.public.cppbuilder.nativeapi
Article #919How to use BitBlt with a HBITMAP handle ?
From: Asger Joergensen
Date: Mon, 17 Dec 2007 14:53
Date: Mon, 17 Dec 2007 14:53
13 lines
1121 bytes
1121 bytes
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 ? I know I can assign the HBITMAP to a TBitmap->Handle but I'm not interested in an extra copy of the bitmap. Thanks in advance Asger
Technical Details
Message-ID:
<MPG.21d0abd3ce2daf26989982@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c61a90c52be804ea,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Asger Joergensen <junk@Asger-P.dk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to use BitBlt with a HBITMAP handle ? Date: Mon, 17 Dec 2007 15:53:23 +0100 Message-ID: <MPG.21d0abd3ce2daf26989982@newsgroups.borland.com> Organization: Asger-P MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 NNTP-Posting-Host: 83.73.201.25 X-Trace: newsgroups.borland.com 1197903202 83.73.201.25 (17 Dec 2007 06:53:22 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail