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
e9310da5
Commit
e9310da5
authored
Nov 08, 2005
by
Michael Kaufmann
Committed by
Alexandre Julliard
Nov 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle WM_PRINTCLIENT.
Don't use SelectClipRgn in WM_PRINTCLIENT.
parent
2e9bff70
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
25 additions
and
14 deletions
+25
-14
animate.c
dlls/comctl32/animate.c
+1
-0
datetime.c
dlls/comctl32/datetime.c
+1
-0
header.c
dlls/comctl32/header.c
+1
-0
hotkey.c
dlls/comctl32/hotkey.c
+1
-0
monthcal.c
dlls/comctl32/monthcal.c
+1
-0
pager.c
dlls/comctl32/pager.c
+2
-0
progress.c
dlls/comctl32/progress.c
+1
-0
propsheet.c
dlls/comctl32/propsheet.c
+1
-0
rebar.c
dlls/comctl32/rebar.c
+1
-2
status.c
dlls/comctl32/status.c
+1
-0
syslink.c
dlls/comctl32/syslink.c
+1
-0
tab.c
dlls/comctl32/tab.c
+1
-0
toolbar.c
dlls/comctl32/toolbar.c
+1
-0
tooltips.c
dlls/comctl32/tooltips.c
+1
-0
trackbar.c
dlls/comctl32/trackbar.c
+1
-0
treeview.c
dlls/comctl32/treeview.c
+1
-2
updown.c
dlls/comctl32/updown.c
+1
-0
button.c
dlls/user/button.c
+4
-10
edit.c
dlls/user/edit.c
+1
-0
listbox.c
dlls/user/listbox.c
+1
-0
static.c
dlls/user/static.c
+1
-0
No files found.
dlls/comctl32/animate.c
View file @
e9310da5
...
...
@@ -899,6 +899,7 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
case
WM_TIMER
:
return
ANIMATE_Timer
(
infoPtr
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
{
/* the animation isn't playing, or has not decompressed
...
...
dlls/comctl32/datetime.c
View file @
e9310da5
...
...
@@ -1284,6 +1284,7 @@ DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_GETDLGCODE
:
return
DLGC_WANTARROWS
|
DLGC_WANTCHARS
;
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
DATETIME_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/header.c
View file @
e9310da5
...
...
@@ -1717,6 +1717,7 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
case
WM_THEMECHANGED
:
return
HEADER_ThemeChanged
(
hwnd
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
HEADER_Paint
(
hwnd
,
wParam
);
...
...
dlls/comctl32/hotkey.c
View file @
e9310da5
...
...
@@ -516,6 +516,7 @@ HOTKEY_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NCCREATE
:
return
HOTKEY_NCCreate
(
hwnd
,
(
LPCREATESTRUCTW
)
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
HOTKEY_Paint
(
infoPtr
,
(
HDC
)
wParam
);
return
0
;
...
...
dlls/comctl32/monthcal.c
View file @
e9310da5
...
...
@@ -2007,6 +2007,7 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_LBUTTONUP
:
return
MONTHCAL_LButtonUp
(
infoPtr
,
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
MONTHCAL_Paint
(
infoPtr
,
wParam
);
...
...
dlls/comctl32/pager.c
View file @
e9310da5
...
...
@@ -34,6 +34,8 @@
* PGS_DRAGNDROP
* Notifications:
* PGN_HOTITEMCHANGE
* Messages:
* WM_PRINT and/or WM_PRINTCLIENT
*
* TESTING:
* Tested primarily with the controlspy Pager application.
...
...
dlls/comctl32/progress.c
View file @
e9310da5
...
...
@@ -627,6 +627,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
case
WM_SETFONT
:
return
(
LRESULT
)
PROGRESS_SetFont
(
infoPtr
,
(
HFONT
)
wParam
,
(
BOOL
)
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
PROGRESS_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/propsheet.c
View file @
e9310da5
...
...
@@ -3455,6 +3455,7 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TRUE
;
}
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
PROPSHEET_Paint
(
hwnd
,
(
HDC
)
wParam
);
return
TRUE
;
...
...
dlls/comctl32/rebar.c
View file @
e9310da5
...
...
@@ -50,7 +50,6 @@
* - WM_LBUTTONDBLCLK
* - WM_MEASUREITEM
* - WM_PALETTECHANGED
* - WM_PRINTCLIENT
* - WM_QUERYNEWPALETTE
* - WM_RBUTTONDOWN
* - WM_RBUTTONUP
...
...
@@ -4768,11 +4767,11 @@ REBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NOTIFYFORMAT
:
return
REBAR_NotifyFormat
(
infoPtr
,
wParam
,
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
REBAR_Paint
(
infoPtr
,
wParam
,
lParam
);
/* case WM_PALETTECHANGED: supported according to ControlSpy */
/* case WM_PRINTCLIENT: supported according to ControlSpy */
/* case WM_QUERYNEWPALETTE:supported according to ControlSpy */
/* case WM_RBUTTONDOWN: supported according to ControlSpy */
/* case WM_RBUTTONUP: supported according to ControlSpy */
...
...
dlls/comctl32/status.c
View file @
e9310da5
...
...
@@ -1342,6 +1342,7 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
case
WM_NOTIFYFORMAT
:
return
STATUSBAR_NotifyFormat
(
infoPtr
,
(
HWND
)
wParam
,
(
INT
)
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
STATUSBAR_WMPaint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/syslink.c
View file @
e9310da5
...
...
@@ -1463,6 +1463,7 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
return
DefWindowProcW
(
hwnd
,
message
,
wParam
,
lParam
);
switch
(
message
)
{
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
SYSLINK_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/tab.c
View file @
e9310da5
...
...
@@ -3283,6 +3283,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_MOUSEMOVE
:
return
TAB_MouseMove
(
infoPtr
,
wParam
,
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
TAB_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/toolbar.c
View file @
e9310da5
...
...
@@ -7234,6 +7234,7 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NOTIFYFORMAT
:
return
TOOLBAR_NotifyFormat
(
infoPtr
,
wParam
,
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
TOOLBAR_Paint
(
hwnd
,
wParam
);
...
...
dlls/comctl32/tooltips.c
View file @
e9310da5
...
...
@@ -2782,6 +2782,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NOTIFYFORMAT
:
return
TOOLTIPS_NotifyFormat
(
hwnd
,
wParam
,
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
TOOLTIPS_Paint
(
hwnd
,
wParam
,
lParam
);
...
...
dlls/comctl32/trackbar.c
View file @
e9310da5
...
...
@@ -1878,6 +1878,7 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_MOUSEMOVE
:
return
TRACKBAR_MouseMove
(
infoPtr
,
wParam
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
TRACKBAR_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/treeview.c
View file @
e9310da5
...
...
@@ -5629,11 +5629,10 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NOTIFYFORMAT
:
return
TREEVIEW_NotifyFormat
(
infoPtr
,
(
HWND
)
wParam
,
(
UINT
)
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
TREEVIEW_Paint
(
infoPtr
,
wParam
);
/* WM_PRINTCLIENT */
case
WM_RBUTTONDOWN
:
return
TREEVIEW_RButtonDown
(
infoPtr
,
lParam
);
...
...
dlls/comctl32/updown.c
View file @
e9310da5
...
...
@@ -934,6 +934,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
return
UPDOWN_KeyPressed
(
infoPtr
,
(
int
)
wParam
);
break
;
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
UPDOWN_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/user/button.c
View file @
e9310da5
...
...
@@ -279,6 +279,7 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
}
return
1
;
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
if
(
btnPaintFunc
[
btn_type
])
{
...
...
@@ -777,7 +778,6 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
{
RECT
rc
,
focus_rect
,
r
;
UINT
dtFlags
,
uState
;
HRGN
hRgn
;
HPEN
hOldPen
;
HBRUSH
hOldBrush
;
INT
oldBkMode
;
...
...
@@ -834,16 +834,13 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
if
(
pushedState
)
OffsetRect
(
&
r
,
1
,
1
);
hRgn
=
CreateRectRgn
(
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
SelectClipRgn
(
hDC
,
hRgn
);
IntersectClipRect
(
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
oldTxtColor
=
SetTextColor
(
hDC
,
GetSysColor
(
COLOR_BTNTEXT
)
);
BUTTON_DrawLabel
(
hwnd
,
hDC
,
dtFlags
,
&
r
);
SetTextColor
(
hDC
,
oldTxtColor
);
SelectClipRgn
(
hDC
,
0
);
DeleteObject
(
hRgn
);
if
(
state
&
BUTTON_HASFOCUS
)
{
...
...
@@ -868,7 +865,6 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
HBRUSH
hBrush
;
int
delta
;
UINT
dtFlags
;
HRGN
hRgn
;
HFONT
hFont
;
LONG
state
=
get_button_state
(
hwnd
);
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
...
...
@@ -970,9 +966,8 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
if
(
dtFlags
==
(
UINT
)
-
1L
)
/* Noting to draw */
return
;
hRgn
=
CreateRectRgn
(
client
.
left
,
client
.
top
,
client
.
right
,
client
.
bottom
);
SelectClipRgn
(
hDC
,
hRgn
);
DeleteObject
(
hRgn
);
IntersectClipRect
(
hDC
,
client
.
left
,
client
.
top
,
client
.
right
,
client
.
bottom
);
if
(
action
==
ODA_DRAWENTIRE
)
BUTTON_DrawLabel
(
hwnd
,
hDC
,
dtFlags
,
&
rtext
);
...
...
@@ -986,7 +981,6 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
IntersectRect
(
&
rtext
,
&
rtext
,
&
client
);
DrawFocusRect
(
hDC
,
&
rtext
);
}
SelectClipRgn
(
hDC
,
0
);
}
...
...
dlls/user/edit.c
View file @
e9310da5
...
...
@@ -920,6 +920,7 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
result
=
EDIT_WM_MouseMove
(
es
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
break
;
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
EDIT_WM_Paint
(
es
,
(
HDC
)
wParam
);
break
;
...
...
dlls/user/listbox.c
View file @
e9310da5
...
...
@@ -3013,6 +3013,7 @@ static LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
case
WM_GETDLGCODE
:
return
DLGC_WANTARROWS
|
DLGC_WANTCHARS
;
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
{
PAINTSTRUCT
ps
;
...
...
dlls/user/static.c
View file @
e9310da5
...
...
@@ -282,6 +282,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
else
return
unicode
?
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
)
:
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
{
PAINTSTRUCT
ps
;
...
...
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