Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Window Capture

2 views
Skip to first unread message

Synoptech

unread,
Jan 28, 1997, 3:00:00 AM1/28/97
to

I want to capture a window's bitmap in order to save the image to a
file. Using API calls GetDC(),
GetCompatibleDC(),
GetCompatibleBitmap(),
SelectObject()
and BitBlt()
I can get the window's image. But if the window is clipped by another
window or is minimized the captured bitmap has the clipping window's
image or, if the window was minimized, is black. Playing around with DC
clipping functions does not seem to work.

Is there a way to capture a window even if it is hidden?

Chris Marriott

unread,
Feb 2, 1997, 3:00:00 AM2/2/97
to

In article <32EE63...@synoptech.ca>, Synoptech
<syno...@synoptech.ca> writes

>Is there a way to capture a window even if it is hidden?

no.

Chris

----------------------------------------------------------------
Chris Marriott, SkyMap Software, U.K. e-mail: ch...@skymap.com
Creators of fine astronomy software for Windows.
For full details, visit our web site at http://www.skymap.com


L.J. Wischik

unread,
Feb 2, 1997, 3:00:00 AM2/2/97
to

Synoptech <syno...@synoptech.ca> wrote:
>I want to capture a window's bitmap in order to save the image to a
>file.
>I can get the window's image. But if the window is clipped by another
>window or is minimized the captured bitmap has the clipping window's
>image or, if the window was minimized, is black. Playing around with DC
>clipping functions does not seem to work.

Maybe you could try creating a DC, selecting a bitmap into it, and
sending a WM_PAINT message to the window. It's a grubby solution, but
just perhaps it might work in some cases.

--
Lucian Wischik, Queens' College, Cambridge CB3 9ET. ljw...@cam.ac.uk

0 new messages