473,471 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Screen capture of non visible windows

Hi all!.

I'm trying to capture a screen shot of a window. This works good until
the window is partly or completley hidden, then i get the graphics of
what is visible on my screen (the windows that cover my screen shot
window). I have tried this in both MCF and pure win32 but with the
same result.

I know i can set the window i want to capture to the front/top with
commands such as SetForegroundWindow() and SetWindowPos(). The
problem is however that i don't want the window to be placed on top of
other windows.

Is this even possible? I not is there any other way to get the Bitmap
or color of pixels out of hidden windows?

Any help much appreciated!
Jul 22 '05 #1
5 3584
Sambucus wrote in news:d3**************************@posting.google.c om:
Any help much appreciated!


Post your question in a news group where windows/MFC programmers
hang out:

news://comp.os.ms-windows.programmer.win32
news://comp.os.ms-windows.programmer.tools.mfc

HTH.

Rob.
--
http://www.victim-prime.dsl.pipex.com/
Jul 22 '05 #2
While it was 2/23/04 2:20 PM throughout the UK, Sambucus sprinkled
little black dots on a white screen, and they fell thus:
Hi all!.

I'm trying to capture a screen shot of a window.
Standard C++ knows nothing of windows.
This works good until the window is partly or completley hidden, then
i get the graphics of what is visible on my screen (the windows that
cover my screen shot window). I have tried this in both MCF and pure
win32 but with the same result.


Windows, in general, keeps no record of obscured window content. This
is why, when you write a Windows program, you have to tell it how to redraw.

Stewart.

--
My e-mail is valid but not my primary mailbox, aside from its being the
unfortunate victim of intensive mail-bombing at the moment. Please keep
replies on the 'group where everyone may benefit.
Jul 22 '05 #3
"Stewart Gordon" <sm*******@yahoo.com> wrote in message
news:c1**********@sun-cc204.lut.ac.uk

Windows, in general, keeps no record of obscured window content. This
is why, when you write a Windows program, you have to tell it how to
redraw.


True, but this doesn't necessarily stop you from getting a screen capture of
non-visible windows. You can ask a window to draw itself into a memory
device context.
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)

Jul 22 '05 #4
Rob Williscroft <rt*@freenet.REMOVE.co.uk> wrote in message news:<Xn**********************************@195.129 .110.200>...
Sambucus wrote in news:d3**************************@posting.google.c om:
Any help much appreciated!
Post your question in a news group where windows/MFC programmers
hang out:

news://comp.os.ms-windows.programmer.win32
news://comp.os.ms-windows.programmer.tools.mfc

I have done that to.
HTH.
Your welcome. Rob.

Jul 22 '05 #5
Stewart Gordon <sm*******@yahoo.com> wrote in message news:<c1**********@sun-cc204.lut.ac.uk>...
While it was 2/23/04 2:20 PM throughout the UK, Sambucus sprinkled
little black dots on a white screen, and they fell thus:
Hi all!.

I'm trying to capture a screen shot of a window.
Standard C++ knows nothing of windows.
This works good until the window is partly or completley hidden, then
i get the graphics of what is visible on my screen (the windows that
cover my screen shot window). I have tried this in both MCF and pure
win32 but with the same result.


Windows, in general, keeps no record of obscured window content. This
is why, when you write a Windows program, you have to tell it how to redraw.

Ok, then it was as i suspected. Back to my question, is there any way
to get the graphics or pixels (pixel color at certain X,Y is what I am
after) in a hidden window by any means, get it from memory or using
any type of system hook? Stewart.

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Me Mine | last post by:
i, I have trying to code a small console app that will allow a user to select a window and then create a screen capture of the window. I haven't been able to figure out how to do the screen...
4
by: Madestro | last post by:
Hi guys, I have a little problem. I have a class that uses Windows API to capture a snapshot of the screen. I have this class in a library that I include in my projects. When I try to use...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
5
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. ...
2
by: py | last post by:
I need to take a screen shot of the computer screen. I am trying to use PIL and I saw there is ImageGrab...however it only works on Windows. Is there a platform-independent ability to work...
4
by: gwhite1 | last post by:
I use this code to capture a screen in a regular VB 2005 windows app. It works great! I found the code in google. But when I create a windows service it does not capture the screen. It only...
4
by: Paolo Pantaleo | last post by:
Hi, I need to capture a screen snapshot in Linux. PIL has a module IageGrab, but in the free version it only works under Windows. Is there any package to capture the screen on Linux? Thnx...
1
by: JP2006 | last post by:
I'm trying to write a control that will take a screen capture of a particular website when a user submits a form in a web application; one of the form fields is for a URL - the control needs to get...
5
Atran
by: Atran | last post by:
Hello Everyone. In this article: You will know to capture the screen in 2 ways: 1)- Capture full screen. 2)- Capture region. Let's Begin: First make a new Windows Application project. And...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.