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
1446a06c
Commit
1446a06c
authored
Oct 07, 2002
by
Paul Rupe
Committed by
Alexandre Julliard
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inaccurate listview scrolling with PgUp/Down and Home/End keys.
parent
16377936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
listview.c
dlls/comctl32/listview.c
+10
-9
No files found.
dlls/comctl32/listview.c
View file @
1446a06c
...
...
@@ -4257,7 +4257,8 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart
UINT
uView
=
LISTVIEW_GetType
(
infoPtr
);
INT
nScrollPosHeight
=
0
;
INT
nScrollPosWidth
=
0
;
INT
nPartialAdjust
=
0
;
INT
nHorzAdjust
=
0
;
INT
nVertAdjust
=
0
;
INT
nHorzDiff
=
0
;
INT
nVertDiff
=
0
;
RECT
rcItem
;
...
...
@@ -4277,12 +4278,12 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart
if
(
rcItem
.
left
<
infoPtr
->
rcList
.
left
)
{
n
Partial
Adjust
=
-
1
;
if
(
uView
!=
LVS_REPORT
)
nHorzDiff
=
rcItem
.
left
+
infoPtr
->
rcList
.
left
;
n
Horz
Adjust
=
-
1
;
if
(
uView
!=
LVS_REPORT
)
nHorzDiff
=
rcItem
.
left
-
infoPtr
->
rcList
.
left
;
}
else
{
n
Partial
Adjust
=
1
;
n
Horz
Adjust
=
1
;
if
(
uView
!=
LVS_REPORT
)
nHorzDiff
=
rcItem
.
right
-
infoPtr
->
rcList
.
right
;
}
}
...
...
@@ -4297,12 +4298,12 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart
if
(
rcItem
.
top
<
infoPtr
->
rcList
.
top
)
{
n
Partial
Adjust
=
-
1
;
if
(
uView
!=
LVS_LIST
)
nVertDiff
=
rcItem
.
top
+
infoPtr
->
rcList
.
top
;
n
Vert
Adjust
=
-
1
;
if
(
uView
!=
LVS_LIST
)
nVertDiff
=
rcItem
.
top
-
infoPtr
->
rcList
.
top
;
}
else
{
n
Partial
Adjust
=
1
;
n
Vert
Adjust
=
1
;
if
(
uView
!=
LVS_LIST
)
nVertDiff
=
rcItem
.
bottom
-
infoPtr
->
rcList
.
bottom
;
}
}
...
...
@@ -4312,14 +4313,14 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart
if
(
nScrollPosWidth
)
{
INT
diff
=
nHorzDiff
/
nScrollPosWidth
;
if
(
rcItem
.
left
%
nScrollPosWidth
)
diff
+=
nPartial
Adjust
;
if
(
nHorzDiff
%
nScrollPosWidth
)
diff
+=
nHorz
Adjust
;
LISTVIEW_HScroll
(
infoPtr
,
SB_INTERNAL
,
diff
,
0
);
}
if
(
nScrollPosHeight
)
{
INT
diff
=
nVertDiff
/
nScrollPosHeight
;
if
(
rcItem
.
top
%
nScrollPosHeight
)
diff
+=
nPartial
Adjust
;
if
(
nVertDiff
%
nScrollPosHeight
)
diff
+=
nVert
Adjust
;
LISTVIEW_VScroll
(
infoPtr
,
SB_INTERNAL
,
diff
,
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