🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Reading pixel from another application

#9253
From: Remy Lebeau (TeamB)
Date: Tue, 20 Jul 2004 17:35
14 lines
1391 bytes
"Henry" <eangelo@libero.it> wrote in message
news:40fd37c8@newsgroups.borland.com...

> which worked correctly. My problem is: what if the target
> windows is covered by another windows or it is minimized ?

Specify an actual window handle when calling GetDC() instead of getting the
screen's DC.  The screen DC only contains the pixels that are actually
visible onscreen, whereas a window DC contains all of the pixels for a
particular window regardless of what's on top of it..


Gambit
Technical Details
Message-ID: <40fd57a4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40fd37c8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b592d6567f6c1e9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40fd37c8@newsgroups.borland.com>
Subject: Re: Reading pixel from another application
Date: Tue, 20 Jul 2004 10:35:25 -0700
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <40fd57a4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090344868 68.69.17.41 (20 Jul 2004 10:34:28 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail