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
762f18d6
Commit
762f18d6
authored
Jan 24, 1999
by
NF Stevens
Committed by
Alexandre Julliard
Jan 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change SW_??? options on list box scrolling so that they match what
Windows does.
parent
e257cb5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
listbox.c
controls/listbox.c
+4
-3
No files found.
controls/listbox.c
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
);
}
...
...
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