🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multi-thread OR Event-based?

#1846
From: Jonathan Benedicto
Date: Wed, 13 Jun 2007 17:38
22 lines
1951 bytes
Robert G. Hoover wrote:
> Hi JD,
>
> There's a function I haven't tried. I'm afraid I have very little
> understanding of DeviceContexts. I see that BitBlt needs a source DC. I
> don't have one. Rather I have an unsigned char block of memory that I
> manipulate myself, held in a BITMAP structure and referenced with a
> BITMAPINFO structure. Do I need to define a DC for my BITMAP? I see
> functions like CreateCompatibleDC. Do I need to SelectObject an HBITMAP
> for a new DC? If I change the bytes in my BITMAP.bmBits array, will
> those changes appear immediately? Or do I have to SelectObject again or
> CreateCompatibleDC again?

I'm in the middle to a reply to your original post, but thought I'd make a 
quick comment here.

AFAIK, StretchDIBits is the BitBlt equivalent that takes a block of memory 
instead of a DC.

HTH

Jon 
Technical Details
Message-ID: <46702bd0$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: <46701cfb@newsgroups.borland.com> <46702326$1@newsgroups.borland.com> <46702831@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,27bec389d3c536e6
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <invalid@nobody.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46701cfb@newsgroups.borland.com> <46702326$1@newsgroups.borland.com> <46702831@newsgroups.borland.com>
In-Reply-To: <46702831@newsgroups.borland.com>
Subject: Re: Multi-thread OR Event-based?
Date: Wed, 13 Jun 2007 13:38:39 -0400
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16386
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386
NNTP-Posting-Host: 74.115.18.89
Message-ID: <46702bd0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1181756368 74.115.18.89 (13 Jun 2007 10:39:28 -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