api函数名(function):PrintWindow PrintWindow 库名(library):user32 PrintWindow 操作系统(os):Requires Windows XP or later; Win9x/ME: Not supported PrintWindow 参数表(parameter):
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.
PrintWindow 返回值(return):
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. PrintWindow 说明(description):
The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC. PrintWindow 声明(declare):
Declare Function PrintWindow Lib "user32" (ByVal hWnd As Long, ByVal hdcBlt As Long, ByVal nFlags As Long) As Long PrintWindow 例程(example): PrintWindow