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
4ee79efd
Commit
4ee79efd
authored
Aug 15, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listbox: Update anchor index on LB_SETSEL.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
201dc289
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
listbox.c
dlls/comctl32/listbox.c
+4
-1
listbox.c
dlls/comctl32/tests/listbox.c
+0
-6
No files found.
dlls/comctl32/listbox.c
View file @
4ee79efd
...
...
@@ -2758,7 +2758,10 @@ static LRESULT CALLBACK LISTBOX_WindowProc( HWND hwnd, UINT msg, WPARAM wParam,
return
descr
->
items
[
wParam
].
selected
;
case
LB_SETSEL
:
return
LISTBOX_SetSelection
(
descr
,
lParam
,
wParam
,
FALSE
);
ret
=
LISTBOX_SetSelection
(
descr
,
lParam
,
wParam
,
FALSE
);
if
(
ret
!=
LB_ERR
&&
wParam
)
descr
->
anchor_item
=
lParam
;
return
ret
;
case
LB_SETCURSEL
:
if
(
IS_MULTISELECT
(
descr
))
return
LB_ERR
;
...
...
dlls/comctl32/tests/listbox.c
View file @
4ee79efd
...
...
@@ -611,19 +611,16 @@ static void test_LB_SETSEL(void)
ret
=
SendMessageA
(
list
,
LB_SETSEL
,
TRUE
,
0
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_GETANCHORINDEX
,
0
,
0
);
todo_wine
ok
(
ret
==
0
,
"Unexpected anchor index %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_SETSEL
,
TRUE
,
1
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_GETANCHORINDEX
,
0
,
0
);
todo_wine
ok
(
ret
==
1
,
"Unexpected anchor index %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_SETSEL
,
FALSE
,
1
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_GETANCHORINDEX
,
0
,
0
);
todo_wine
ok
(
ret
==
1
,
"Unexpected anchor index %d.
\n
"
,
ret
);
DestroyWindow
(
list
);
...
...
@@ -638,19 +635,16 @@ todo_wine
ret
=
SendMessageA
(
list
,
LB_SETSEL
,
TRUE
,
0
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_GETANCHORINDEX
,
0
,
0
);
todo_wine
ok
(
ret
==
0
,
"Unexpected anchor index %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_SETSEL
,
TRUE
,
1
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_GETANCHORINDEX
,
0
,
0
);
todo_wine
ok
(
ret
==
1
,
"Unexpected anchor index %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_SETSEL
,
FALSE
,
1
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
list
,
LB_GETANCHORINDEX
,
0
,
0
);
todo_wine
ok
(
ret
==
1
,
"Unexpected anchor index %d.
\n
"
,
ret
);
DestroyWindow
(
list
);
...
...
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