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
373db5ce
Commit
373db5ce
authored
Apr 02, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Apr 02, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrote a basic implementation of the WM_PRINT message.
parent
d96bc155
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
defwnd.c
windows/defwnd.c
+44
-0
No files found.
windows/defwnd.c
View file @
373db5ce
...
...
@@ -127,6 +127,46 @@ static void DEFWND_SetRedraw( WND* wndPtr, WPARAM wParam )
}
/***********************************************************************
* DEFWND_Print
*
* This method handles the default behavior for the WM_PRINT message.
*/
static
void
DEFWND_Print
(
WND
*
wndPtr
,
HDC
hdc
,
ULONG
uFlags
)
{
/*
* Visibility flag.
*/
if
(
(
uFlags
&
PRF_CHECKVISIBLE
)
&&
!
IsWindowVisible
(
wndPtr
->
hwndSelf
)
)
return
;
/*
* Unimplemented flags.
*/
if
(
(
uFlags
&
PRF_CHILDREN
)
||
(
uFlags
&
PRF_OWNED
)
||
(
uFlags
&
PRF_NONCLIENT
)
)
{
WARN
(
win
,
"WM_PRINT message with unsupported flags
\n
"
);
}
/*
* Background
*/
if
(
uFlags
&
PRF_ERASEBKGND
)
SendMessageA
(
wndPtr
->
hwndSelf
,
WM_ERASEBKGND
,
(
WPARAM
)
hdc
,
0
);
/*
* Client area
*/
if
(
uFlags
&
PRF_CLIENT
)
SendMessageA
(
wndPtr
->
hwndSelf
,
WM_PRINTCLIENT
,
(
WPARAM
)
hdc
,
PRF_CLIENT
);
}
/***********************************************************************
* DEFWND_DefWinProc
*
* Default window procedure for messages that are the same in Win16 and Win32.
...
...
@@ -184,6 +224,10 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
wndPtr
->
pVScroll
=
wndPtr
->
pHScroll
=
NULL
;
return
0
;
case
WM_PRINT
:
DEFWND_Print
(
wndPtr
,
(
HDC
)
wParam
,
lParam
);
return
0
;
case
WM_PAINTICON
:
case
WM_PAINT
:
{
...
...
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