Compiled: Delphi 2007
This example shows you how to use the PrintWindow API to view the visual output of a window which may, or may not be visible on the screen.
It can therefore be used as an alternative to BitBlt for a more complete screenshot project.
MSDN - PrintWindowhttp://msdn.microsoft.com/en-us/library/dd162869%28VS.85%29.aspx
function copies a visual window into the specified device context (DC), typically a printer DC.
A handle to the window that will be copied.
A handle to the device context.
The drawing options. It can be one of the following values:
nil - Entire Window is copied to hdcBlt
Only the client area of the window is copied to hdcBlt.
Only Delphi source code is included in the archive.