A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



PrintWindow

The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC.

VB4-32,5,6
Declare Function PrintWindow Lib "user32" (ByVal hWnd As Long, ByVal hdcBlt As Long, ByVal nFlags As Long) As Long

Operating Systems Supported
Requires Windows XP or later; Win9x/ME: Not supported

Library
User32

Parameter Information
- hwnd
Handle to the window that will be copied.

- hdcBlt
Handle to the device context.

- nFlags
Specifies the drawing options. It can be one of the following values.

PW_CLIENTONLY
Only the client area of the window is copied to hdcBlt. By default, the entire window is copied.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Last update: 07 April 2006