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
b2cb04b4
Commit
b2cb04b4
authored
Jun 06, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix listview horizontal scrolling.
parent
a87e726d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
listview.c
dlls/comctl32/listview.c
+5
-2
No files found.
dlls/comctl32/listview.c
View file @
b2cb04b4
...
...
@@ -9608,6 +9608,7 @@ static LRESULT LISTVIEW_HScroll(LISTVIEW_INFO *infoPtr, INT nScrollCode,
{
INT
nOldScrollPos
,
nNewScrollPos
;
SCROLLINFO
scrollInfo
;
BOOL
is_an_icon
;
TRACE
(
"(nScrollCode=%d(%s), nScrollDiff=%d)
\n
"
,
nScrollCode
,
debugscrollcode
(
nScrollCode
),
nScrollDiff
);
...
...
@@ -9617,6 +9618,8 @@ static LRESULT LISTVIEW_HScroll(LISTVIEW_INFO *infoPtr, INT nScrollCode,
scrollInfo
.
cbSize
=
sizeof
(
SCROLLINFO
);
scrollInfo
.
fMask
=
SIF_PAGE
|
SIF_POS
|
SIF_RANGE
|
SIF_TRACKPOS
;
is_an_icon
=
((
infoPtr
->
uView
==
LV_VIEW_ICON
)
||
(
infoPtr
->
uView
==
LV_VIEW_SMALLICON
));
if
(
!
GetScrollInfo
(
infoPtr
->
hwndSelf
,
SB_HORZ
,
&
scrollInfo
))
return
1
;
nOldScrollPos
=
scrollInfo
.
nPos
;
...
...
@@ -9627,11 +9630,11 @@ static LRESULT LISTVIEW_HScroll(LISTVIEW_INFO *infoPtr, INT nScrollCode,
break
;
case
SB_LINELEFT
:
nScrollDiff
=
-
1
;
nScrollDiff
=
(
is_an_icon
)
?
-
LISTVIEW_SCROLL_ICON_LINE_SIZE
:
-
1
;
break
;
case
SB_LINERIGHT
:
nScrollDiff
=
1
;
nScrollDiff
=
(
is_an_icon
)
?
LISTVIEW_SCROLL_ICON_LINE_SIZE
:
1
;
break
;
case
SB_PAGELEFT
:
...
...
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