AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

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.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/