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
cb3424f6
Commit
cb3424f6
authored
Apr 17, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Scroll listview if changing scroll bounds changes the scroll pos.
parent
89ed90f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
listview.c
dlls/comctl32/listview.c
+14
-2
No files found.
dlls/comctl32/listview.c
View file @
cb3424f6
...
...
@@ -1634,6 +1634,7 @@ static void LISTVIEW_UpdateScroll(LISTVIEW_INFO *infoPtr)
{
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
SCROLLINFO
horzInfo
,
vertInfo
;
INT
dx
,
dy
;
if
((
infoPtr
->
dwStyle
&
LVS_NOSCROLL
)
||
!
is_redrawing
(
infoPtr
))
return
;
...
...
@@ -1666,7 +1667,8 @@ static void LISTVIEW_UpdateScroll(LISTVIEW_INFO *infoPtr)
horzInfo
.
fMask
=
SIF_RANGE
|
SIF_PAGE
;
horzInfo
.
nMax
=
max
(
horzInfo
.
nMax
-
1
,
0
);
SetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_HORZ
,
&
horzInfo
,
TRUE
);
dx
=
GetScrollPos
(
infoPtr
->
hwndSelf
,
SB_HORZ
);
dx
-=
SetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_HORZ
,
&
horzInfo
,
TRUE
);
TRACE
(
"horzInfo=%s
\n
"
,
debugscrollinfo
(
&
horzInfo
));
/* Setting the horizontal scroll can change the listview size
...
...
@@ -1697,9 +1699,19 @@ static void LISTVIEW_UpdateScroll(LISTVIEW_INFO *infoPtr)
vertInfo
.
fMask
=
SIF_RANGE
|
SIF_PAGE
;
vertInfo
.
nMax
=
max
(
vertInfo
.
nMax
-
1
,
0
);
SetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_VERT
,
&
vertInfo
,
TRUE
);
dy
=
GetScrollPos
(
infoPtr
->
hwndSelf
,
SB_VERT
);
dy
-=
SetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_VERT
,
&
vertInfo
,
TRUE
);
TRACE
(
"vertInfo=%s
\n
"
,
debugscrollinfo
(
&
vertInfo
));
/* Change of the range may have changed the scroll pos. If so move the content */
if
(
dx
!=
0
||
dy
!=
0
)
{
RECT
listRect
;
listRect
=
infoPtr
->
rcList
;
ScrollWindowEx
(
infoPtr
->
hwndSelf
,
dx
,
dy
,
&
listRect
,
&
listRect
,
0
,
0
,
SW_ERASE
|
SW_INVALIDATE
);
}
/* Update the Header Control */
if
(
uView
==
LVS_REPORT
)
{
...
...
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