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
8d964870
Commit
8d964870
authored
Jun 20, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move WM_PRINT implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
88870884
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
43 deletions
+10
-43
defwnd.c
dlls/user32/defwnd.c
+0
-43
defwnd.c
dlls/win32u/defwnd.c
+10
-0
No files found.
dlls/user32/defwnd.c
View file @
8d964870
...
...
@@ -76,45 +76,6 @@ HBRUSH DEFWND_ControlColor( HDC hDC, UINT ctlType )
/***********************************************************************
* DEFWND_Print
*
* This method handles the default behavior for the WM_PRINT message.
*/
static
void
DEFWND_Print
(
HWND
hwnd
,
HDC
hdc
,
ULONG
uFlags
)
{
/*
* Visibility flag.
*/
if
(
(
uFlags
&
PRF_CHECKVISIBLE
)
&&
!
IsWindowVisible
(
hwnd
)
)
return
;
/*
* Unimplemented flags.
*/
if
(
(
uFlags
&
PRF_CHILDREN
)
||
(
uFlags
&
PRF_OWNED
)
||
(
uFlags
&
PRF_NONCLIENT
)
)
{
WARN
(
"WM_PRINT message with unsupported flags
\n
"
);
}
/*
* Background
*/
if
(
uFlags
&
PRF_ERASEBKGND
)
SendMessageW
(
hwnd
,
WM_ERASEBKGND
,
(
WPARAM
)
hdc
,
0
);
/*
* Client area
*/
if
(
uFlags
&
PRF_CLIENT
)
SendMessageW
(
hwnd
,
WM_PRINTCLIENT
,
(
WPARAM
)
hdc
,
uFlags
);
}
/***********************************************************************
* DEFWND_DefWinProc
*
* Default window procedure for messages that are the same in Ansi and Unicode.
...
...
@@ -157,10 +118,6 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
}
break
;
case
WM_PRINT
:
DEFWND_Print
(
hwnd
,
(
HDC
)
wParam
,
lParam
);
return
0
;
case
WM_SYSCOMMAND
:
return
NC_HandleSysCommand
(
hwnd
,
wParam
,
lParam
);
...
...
dlls/win32u/defwnd.c
View file @
8d964870
...
...
@@ -2621,6 +2621,16 @@ LRESULT default_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
break
;
}
case
WM_PRINT
:
if
((
lparam
&
PRF_CHECKVISIBLE
)
&&
!
is_window_visible
(
hwnd
))
break
;
if
(
lparam
&
(
PRF_CHILDREN
|
PRF_OWNED
|
PRF_NONCLIENT
))
WARN
(
"WM_PRINT message with unsupported lparam %lx
\n
"
,
lparam
);
if
(
lparam
&
PRF_ERASEBKGND
)
send_message
(
hwnd
,
WM_ERASEBKGND
,
wparam
,
0
);
if
(
lparam
&
PRF_CLIENT
)
send_message
(
hwnd
,
WM_PRINTCLIENT
,
wparam
,
lparam
);
break
;
case
WM_APPCOMMAND
:
{
HWND
parent
=
get_parent
(
hwnd
);
...
...
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