user32: Implement PrintWindow.
This commit is contained in:
parent
fa63234b52
commit
7fc8aed47f
|
@ -1549,3 +1549,18 @@ BOOL WINAPI ScrollDC( HDC hdc, INT dx, INT dy, const RECT *lprcScroll,
|
|||
{
|
||||
return USER_Driver->pScrollDC( hdc, dx, dy, lprcScroll, lprcClip, hrgnUpdate, lprcUpdate );
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
* PrintWindow (USER32.@)
|
||||
*
|
||||
*/
|
||||
BOOL WINAPI PrintWindow(HWND hwnd, HDC hdcBlt, UINT nFlags)
|
||||
{
|
||||
UINT flags = PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED | PRF_CLIENT;
|
||||
if(!(nFlags & PW_CLIENTONLY))
|
||||
{
|
||||
flags |= PRF_NONCLIENT;
|
||||
}
|
||||
SendMessageW(hwnd, WM_PRINT, (WPARAM)hdcBlt, flags);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -533,7 +533,7 @@
|
|||
@ stdcall PostQuitMessage(long)
|
||||
@ stdcall PostThreadMessageA(long long long long)
|
||||
@ stdcall PostThreadMessageW(long long long long)
|
||||
# @ stub PrintWindow
|
||||
@ stdcall PrintWindow(long long long)
|
||||
@ stdcall PrivateExtractIconExA(str long ptr ptr long)
|
||||
@ stdcall PrivateExtractIconExW(wstr long ptr ptr long)
|
||||
@ stdcall PrivateExtractIconsA (str long long long ptr ptr long long)
|
||||
|
|
|
@ -1493,6 +1493,9 @@ WINUSERAPI BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
|
|||
#define ENUM_CURRENT_SETTINGS ((DWORD) -1)
|
||||
#define ENUM_REGISTRY_SETTINGS ((DWORD) -2)
|
||||
|
||||
/* Used for PrintWindow */
|
||||
#define PW_CLIENTONLY 0x00000001
|
||||
|
||||
/****** Window classes ******/
|
||||
|
||||
typedef struct tagCREATESTRUCTA
|
||||
|
|
Loading…
Reference in New Issue