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
07763aad
Commit
07763aad
authored
Jun 24, 2005
by
Michael Kaufmann
Committed by
Alexandre Julliard
Jun 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Paint the background with the correct color if WS_BORDER.
parent
854bfc4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
edit.c
dlls/user/edit.c
+10
-5
No files found.
dlls/user/edit.c
View file @
07763aad
...
...
@@ -4677,6 +4677,7 @@ static void EDIT_WM_Paint(EDITSTATE *es, HDC hdc)
RECT
rcLine
;
RECT
rcRgn
;
HBRUSH
brush
;
HBRUSH
old_brush
;
BOOL
rev
=
es
->
bEnableState
&&
((
es
->
flags
&
EF_FOCUSED
)
||
(
es
->
style
&
ES_NOHIDESEL
));
...
...
@@ -4684,21 +4685,25 @@ static void EDIT_WM_Paint(EDITSTATE *es, HDC hdc)
GetClientRect
(
es
->
hwndSelf
,
&
rcClient
);
/*
paint the background
*/
/*
get the background brush
*/
if
(
!
(
brush
=
EDIT_NotifyCtlColor
(
es
,
dc
)))
brush
=
(
HBRUSH
)
GetStockObject
(
WHITE_BRUSH
);
IntersectClipRect
(
dc
,
rcClient
.
left
,
rcClient
.
top
,
rcClient
.
right
,
rcClient
.
bottom
);
GetClipBox
(
dc
,
&
rc
);
FillRect
(
dc
,
&
rc
,
brush
);
/* draw the border */
/* paint the border and the background */
IntersectClipRect
(
dc
,
rcClient
.
left
,
rcClient
.
top
,
rcClient
.
right
,
rcClient
.
bottom
);
if
(
es
->
style
&
WS_BORDER
)
{
rc
=
rcClient
;
if
(
es
->
style
&
ES_MULTILINE
)
{
if
(
es
->
style
&
WS_HSCROLL
)
rc
.
bottom
++
;
if
(
es
->
style
&
WS_VSCROLL
)
rc
.
right
++
;
}
old_brush
=
SelectObject
(
dc
,
brush
);
Rectangle
(
dc
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
SelectObject
(
dc
,
old_brush
);
}
else
{
GetClipBox
(
dc
,
&
rc
);
FillRect
(
dc
,
&
rc
,
brush
);
}
IntersectClipRect
(
dc
,
es
->
format_rect
.
left
,
es
->
format_rect
.
top
,
...
...
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