Perhaps someone can give me a quick idea on how to do the following:
I have two forms, one of which is currently active and in the
foreground, the second one is not visible/in the background.
I have managed to simply get a screenshot, but for that the form has
to be actually visible on the desktop. Is there a way of getting the
content of the second form into a bitmap, without having to display it
first? I tried using
DCDesk := GetWindowDC(Form2.Handle);
BitBlt(bmp.Canvas.Handle, 0, 0, Form2.Width, Form2.Height,
DC, 0, 0, SRCCOPY);
but that only works when the Form is visible, otherwise the bitmap
returned is just plain white.
I'm grateful for any answer anyone might give...