🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can I take a screen shot?

#900
From: Asger Joergensen
Date: Sat, 05 Jan 2008 00:43
11 lines
1098 bytes
Hi Bashar
 
 Bashar Termanini says:
> How can I take a screen shot and save it to a bmp file?

I think if You use GetDC(NULL) You will get a HDC to the screen
and then You can use BitBlt to copy the screen to a Bitmap.

Kind regards
Asger
Technical Details
Message-ID: <MPG.21e8f11d54bf16ac9899c6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <477eabc5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a955b0dfec9583
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: Re: How can I take a screen shot?
Date: Sat, 5 Jan 2008 01:43:33 +0100
Message-ID: <MPG.21e8f11d54bf16ac9899c6@newsgroups.borland.com>
References: <477eabc5@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 1199493933 83.73.201.25 (4 Jan 2008 16:45:33 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail