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
5b397df6
Commit
5b397df6
authored
Feb 09, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Take care of scrolling offset when repositioning header.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3f05534c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
listview.c
dlls/comctl32/listview.c
+12
-4
No files found.
dlls/comctl32/listview.c
View file @
5b397df6
...
...
@@ -11084,13 +11084,21 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
infoPtr
->
rcList
.
bottom
=
max
(
infoPtr
->
rcList
.
bottom
-
2
,
0
);
}
/*
if control created invisible header isn't created
*/
/*
When ListView control is created invisible, header isn't created right away.
*/
if
(
infoPtr
->
hwndHeader
)
{
HDLAYOUT
hl
;
WINDOWPOS
wp
;
POINT
origin
;
WINDOWPOS
wp
;
HDLAYOUT
hl
;
RECT
rect
;
hl
.
prc
=
&
infoPtr
->
rcList
;
LISTVIEW_GetOrigin
(
infoPtr
,
&
origin
);
rect
=
infoPtr
->
rcList
;
rect
.
left
+=
origin
.
x
;
rect
.
top
+=
origin
.
y
;
hl
.
prc
=
&
rect
;
hl
.
pwpos
=
&
wp
;
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hl
);
TRACE
(
" wp.flags=0x%08x, wp=%d,%d (%dx%d)
\n
"
,
wp
.
flags
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
);
...
...
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