Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC.
Syntax
BOOL PrintWindow(
HWND hwnd,
HDC hdcBlt,
UINT nFlags
);
Parameters
hwnd
A handle to the window that will be copied.
hdcBlt
A handle to the device context.
nFlags
The drawing options. It can be one of the following values.
| Value | Meaning |
|---|---|
|
Only the client area of the window is copied to hdcBlt. By default, the entire window is copied. |
Return value
If the function succeeds, it returns a nonzero value.
If the function fails, it returns zero.
Remarks
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | winuser.h (include Windows.h) |
| Library | User32.lib |
| DLL | User32.dll |
| API set | ext-ms-win-ntuser-draw-l1-1-2 (introduced in Windows 10, version 10.0.10240) |