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
b3ab1f8f
Commit
b3ab1f8f
authored
Dec 22, 2022
by
Vladislav Timonin
Committed by
Alexandre Julliard
Jan 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Exclude header area in WM_NCPAINT.
An improvement of
5f0dcf79
, which, depending on theme, had an issue with drawing the top border clipped inside the header.
parent
066221a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
listview.c
dlls/comctl32/listview.c
+4
-4
No files found.
dlls/comctl32/listview.c
View file @
b3ab1f8f
...
@@ -10712,15 +10712,15 @@ static LRESULT LISTVIEW_NCPaint(const LISTVIEW_INFO *infoPtr, HRGN region)
...
@@ -10712,15 +10712,15 @@ static LRESULT LISTVIEW_NCPaint(const LISTVIEW_INFO *infoPtr, HRGN region)
if
(
region
!=
(
HRGN
)
1
)
if
(
region
!=
(
HRGN
)
1
)
CombineRgn
(
cliprgn
,
cliprgn
,
region
,
RGN_AND
);
CombineRgn
(
cliprgn
,
cliprgn
,
region
,
RGN_AND
);
OffsetRect
(
&
r
,
-
r
.
left
,
-
r
.
top
);
dc
=
GetDCEx
(
infoPtr
->
hwndSelf
,
region
,
DCX_WINDOW
|
DCX_INTERSECTRGN
);
if
(
infoPtr
->
hwndHeader
&&
LISTVIEW_IsHeaderEnabled
(
infoPtr
))
if
(
infoPtr
->
hwndHeader
&&
LISTVIEW_IsHeaderEnabled
(
infoPtr
))
{
{
GetWindowRect
(
infoPtr
->
hwndHeader
,
&
window_rect
);
GetWindowRect
(
infoPtr
->
hwndHeader
,
&
window_rect
);
r
.
top
=
min
(
r
.
bottom
,
r
.
top
+
window_rect
.
bottom
-
window_rect
.
top
);
OffsetRect
(
&
window_rect
,
-
r
.
left
,
-
r
.
top
);
ExcludeClipRect
(
dc
,
window_rect
.
left
,
window_rect
.
top
,
window_rect
.
right
,
window_rect
.
bottom
);
}
}
dc
=
GetDCEx
(
infoPtr
->
hwndSelf
,
region
,
DCX_WINDOW
|
DCX_INTERSECTRGN
);
OffsetRect
(
&
r
,
-
r
.
left
,
-
r
.
top
);
if
(
IsThemeBackgroundPartiallyTransparent
(
theme
,
0
,
0
))
if
(
IsThemeBackgroundPartiallyTransparent
(
theme
,
0
,
0
))
DrawThemeParentBackground
(
infoPtr
->
hwndSelf
,
dc
,
&
r
);
DrawThemeParentBackground
(
infoPtr
->
hwndSelf
,
dc
,
&
r
);
DrawThemeBackground
(
theme
,
dc
,
0
,
0
,
&
r
,
0
);
DrawThemeBackground
(
theme
,
dc
,
0
,
0
,
&
r
,
0
);
...
...
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