Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
526ffdc3
Commit
526ffdc3
authored
Jul 04, 1999
by
Yuxi Zhang
Committed by
Alexandre Julliard
Jul 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make defwndproc erase the correct location.
parent
623c0d6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
defwnd.c
windows/defwnd.c
+14
-4
No files found.
windows/defwnd.c
View file @
526ffdc3
...
...
@@ -301,18 +301,28 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
case
WM_ERASEBKGND
:
case
WM_ICONERASEBKGND
:
{
RECT16
rect
;
if
(
!
wndPtr
->
class
->
hbrBackground
)
return
0
;
/* Since WM_ERASEBKGND may receive either a window dc or a */
/* client dc, the area to be erased has to be retrieved from */
/* the device context. */
GetClipBox16
(
(
HDC16
)
wParam
,
&
rect
);
if
(
wndPtr
->
class
->
hbrBackground
<=
(
HBRUSH16
)(
COLOR_MAX
+
1
))
{
HBRUSH
hbrush
=
CreateSolidBrush
(
GetSysColor
(((
DWORD
)
wndPtr
->
class
->
hbrBackground
)
-
1
));
FillWindow
16
(
GetParent16
(
wndPtr
->
hwndSelf
),
wndPtr
->
hwndSelf
,
(
HDC16
)
wParam
,
hbrush
);
PaintRect
16
(
GetParent16
(
wndPtr
->
hwndSelf
),
wndPtr
->
hwndSelf
,
(
HDC16
)
wParam
,
hbrush
,
&
rect
);
DeleteObject
(
hbrush
);
}
else
{
PaintRect16
(
GetParent16
(
wndPtr
->
hwndSelf
),
wndPtr
->
hwndSelf
,
(
HDC16
)
wParam
,
wndPtr
->
class
->
hbrBackground
,
&
rect
);
}
else
FillWindow16
(
GetParent16
(
wndPtr
->
hwndSelf
),
wndPtr
->
hwndSelf
,
(
HDC16
)
wParam
,
wndPtr
->
class
->
hbrBackground
);
return
1
;
}
...
...
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