Implementation of User32.PrintWindow (bug #18772)

Josselin Bardet namjos at gmail.com
Thu Jun 4 13:01:16 CDT 2009


---
 dlls/user32/painting.c  |   11 +++++++++++
 dlls/user32/user32.spec |    2 +-
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 6c15ec6..fa73d19 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -1548,3 +1548,14 @@ 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)
+{
+    return( SendMessageA( hwnd, WM_PRINT, (WPARAM)hdcBlt, PRF_CHILDREN | PRF_CLIENT | PRF_ERASEBKGND | PRF_NONCLIENT | PRF_OWNED ) );
+}
+
+
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index cae0bed..b46e272 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -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)
-- 
1.6.0.4


--------------060802070907010701050801--



More information about the wine-patches mailing list