🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

screen capture

#14920
From: micheal davis
Date: Sun, 27 Jul 2003 12:00
11 lines
1288 bytes
hi all,

I am trying to get a screen capture of the current desktop and then save it
to a bitmap file from my application, after searching msdn, I found the
keybd_event()   function, although it takes a screen shot of my current
program windows, can anyone tell me please how to make it take a shot for
all of the desktop...

I am using the code

keybd_event(VK_SNAPSHOT, 0, 0, 0);
Technical Details
Message-ID: <3f23bee4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3421856959936173,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-27 05:09:20 PST
From: "micheal davis" <micheal_davis@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: screen capture
Date: Sun, 27 Jul 2003 04:00:34 -0800
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62.135.27.83
Message-ID: <3f23bee4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059307236 62.135.27.83 (27 Jul 2003 05:00:36 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail