Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Münchhalfen
wine
Commits
762f18d6
Commit
762f18d6
authored
26 years ago
by
Norman Stevens
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change SW_??? options on list box scrolling so that they match what
Windows does.
parent
e257cb5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controls/listbox.c
+4
-3
4 additions, 3 deletions
controls/listbox.c
with
4 additions
and
3 deletions
controls/listbox.c
+
4
−
3
View file @
762f18d6
...
...
@@ -243,7 +243,8 @@ static LRESULT LISTBOX_SetTopItem( WND *wnd, LB_DESCR *descr, INT32 index,
INT32
diff
=
(
descr
->
top_item
-
index
)
/
descr
->
page_size
*
descr
->
column_width
;
if
(
scroll
&&
(
abs
(
diff
)
<
descr
->
width
))
ScrollWindowEx32
(
wnd
->
hwndSelf
,
diff
,
0
,
NULL
,
NULL
,
0
,
NULL
,
SW_INVALIDATE
|
SW_ERASE
);
SW_INVALIDATE
|
SW_ERASE
|
SW_SCROLLCHILDREN
);
else
scroll
=
FALSE
;
}
...
...
@@ -270,7 +271,7 @@ static LRESULT LISTBOX_SetTopItem( WND *wnd, LB_DESCR *descr, INT32 index,
if
(
abs
(
diff
)
<
descr
->
height
)
ScrollWindowEx32
(
wnd
->
hwndSelf
,
0
,
diff
,
NULL
,
NULL
,
0
,
NULL
,
SW_INVALIDATE
|
SW_ERASE
);
SW_INVALIDATE
|
SW_ERASE
|
SW_SCROLLCHILDREN
);
else
scroll
=
FALSE
;
}
...
...
@@ -1043,7 +1044,7 @@ static void LISTBOX_SetHorizontalPos( WND *wnd, LB_DESCR *descr, INT32 pos )
LISTBOX_UpdateScroll
(
wnd
,
descr
);
if
(
abs
(
diff
)
<
descr
->
width
)
ScrollWindowEx32
(
wnd
->
hwndSelf
,
diff
,
0
,
NULL
,
NULL
,
0
,
NULL
,
SW_INVALIDATE
|
SW_ERASE
);
SW_INVALIDATE
|
SW_ERASE
|
SW_SCROLLCHILDREN
);
else
InvalidateRect32
(
wnd
->
hwndSelf
,
NULL
,
TRUE
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment