Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7fc8aed4
Commit
7fc8aed4
authored
Dec 01, 2009
by
Luke Benstead
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement PrintWindow.
parent
fa63234b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
painting.c
dlls/user32/painting.c
+15
-0
user32.spec
dlls/user32/user32.spec
+1
-1
winuser.h
include/winuser.h
+3
-0
No files found.
dlls/user32/painting.c
View file @
7fc8aed4
...
...
@@ -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
;
}
dlls/user32/user32.spec
View file @
7fc8aed4
...
...
@@ -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)
...
...
include/winuser.h
View file @
7fc8aed4
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment