Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9f019b7c
Commit
9f019b7c
authored
Dec 11, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Directly reset focused item on item count change.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c688724
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
listview.c
dlls/comctl32/listview.c
+1
-0
listview.c
dlls/comctl32/tests/listview.c
+1
-2
No files found.
dlls/comctl32/listview.c
View file @
9f019b7c
...
...
@@ -8834,6 +8834,7 @@ static BOOL LISTVIEW_SetItemCount(LISTVIEW_INFO *infoPtr, INT nItems, DWORD dwFl
if
(
infoPtr
->
nFocusedItem
>=
nItems
)
{
LISTVIEW_SetItemFocus
(
infoPtr
,
-
1
);
infoPtr
->
nFocusedItem
=
-
1
;
SetRectEmpty
(
&
infoPtr
->
rcFocus
);
}
}
...
...
dlls/comctl32/tests/listview.c
View file @
9f019b7c
...
...
@@ -6107,10 +6107,9 @@ todo_wine
ok
(
ret
,
"Failed to set item count.
\n
"
);
ret
=
SendMessageA
(
hwnd
,
LVM_GETNEXTITEM
,
-
1
,
LVNI_FOCUSED
);
todo_wine
ok
(
ret
==
-
1
,
"Unexpected focused item, ret %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"parent seq, owner data/focus 2"
,
TRU
E
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"parent seq, owner data/focus 2"
,
FALS
E
);
/* 2 items, focus on index 0, reduce to 1 item. */
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
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