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
092263f0
Commit
092263f0
authored
Jul 23, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Set LVIS_FOCUSED for all items with LVM_SETITEMSTATE not allowed.
parent
440218cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
listview.c
dlls/comctl32/listview.c
+3
-0
listview.c
dlls/comctl32/tests/listview.c
+2
-2
No files found.
dlls/comctl32/listview.c
View file @
092263f0
...
...
@@ -8108,6 +8108,9 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE
if
((
lvItem
.
state
&
lvItem
.
stateMask
&
LVIS_SELECTED
)
&&
(
infoPtr
->
dwStyle
&
LVS_SINGLESEL
))
return
FALSE
;
/* focus all isn't allowed */
if
(
lvItem
.
state
&
lvItem
.
stateMask
&
LVIS_FOCUSED
)
return
FALSE
;
/* apply to all items */
for
(
lvItem
.
iItem
=
0
;
lvItem
.
iItem
<
infoPtr
->
nItemCount
;
lvItem
.
iItem
++
)
if
(
!
LISTVIEW_SetItemT
(
infoPtr
,
&
lvItem
,
TRUE
))
bResult
=
FALSE
;
...
...
dlls/comctl32/tests/listview.c
View file @
092263f0
...
...
@@ -2547,10 +2547,10 @@ static void test_ownerdata(void)
item
.
state
=
LVIS_FOCUSED
;
g_dump_itemchanged
=
TRUE
;
res
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
-
1
,
(
LPARAM
)
&
item
);
todo_wine
expect
(
FALSE
,
res
);
expect
(
FALSE
,
res
);
g_dump_itemchanged
=
FALSE
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"ownerdata focus all notification"
,
TRU
E
);
"ownerdata focus all notification"
,
FALS
E
);
/* focus single item, remove all */
item
.
stateMask
=
LVIS_FOCUSED
;
item
.
state
=
LVIS_FOCUSED
;
...
...
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