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
d9310e76
Commit
d9310e76
authored
Oct 29, 2002
by
Rein Klazes
Committed by
Alexandre Julliard
Oct 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for listview wheelmouse message handling.
parent
de41ddca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
listview.c
dlls/comctl32/listview.c
+3
-9
No files found.
dlls/comctl32/listview.c
View file @
d9310e76
...
...
@@ -7325,22 +7325,16 @@ static LRESULT LISTVIEW_MouseWheel(LISTVIEW_INFO *infoPtr, INT wheelDelta)
* listview should be scrolled by a multiple of 37 dependently on its dimension or its visible item number
* should be fixed in the future.
*/
if
(
GetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_VERT
,
&
scrollInfo
))
LISTVIEW_VScroll
(
infoPtr
,
SB_THUMBPOSITION
,
scrollInfo
.
nPos
+
(
gcWheelDelta
<
0
)
?
LISTVIEW_SCROLL_ICON_LINE_SIZE
:
-
LISTVIEW_SCROLL_ICON_LINE_SIZE
,
0
);
LISTVIEW_VScroll
(
infoPtr
,
SB_INTERNAL
,
(
gcWheelDelta
<
0
)
?
LISTVIEW_SCROLL_ICON_LINE_SIZE
:
-
LISTVIEW_SCROLL_ICON_LINE_SIZE
,
0
);
break
;
case
LVS_REPORT
:
if
(
abs
(
gcWheelDelta
)
>=
WHEEL_DELTA
&&
pulScrollLines
)
{
if
(
GetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_VERT
,
&
scrollInfo
))
{
int
cLineScroll
=
min
(
LISTVIEW_GetCountPerColumn
(
infoPtr
),
pulScrollLines
);
cLineScroll
*=
(
gcWheelDelta
/
WHEEL_DELTA
);
LISTVIEW_VScroll
(
infoPtr
,
SB_THUMBPOSITION
,
scrollInfo
.
nPos
+
cLineScroll
,
0
);
}
LISTVIEW_VScroll
(
infoPtr
,
SB_INTERNAL
,
cLineScroll
,
0
);
}
break
;
...
...
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