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
59e59c6b
Commit
59e59c6b
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: Don't alter selection mark in LVM_SETITEMSTATE.
parent
092263f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
listview.c
dlls/comctl32/listview.c
+0
-33
listview.c
dlls/comctl32/tests/listview.c
+0
-2
No files found.
dlls/comctl32/listview.c
View file @
59e59c6b
...
@@ -8118,39 +8118,6 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE
...
@@ -8118,39 +8118,6 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE
else
else
bResult
=
LISTVIEW_SetItemT
(
infoPtr
,
&
lvItem
,
TRUE
);
bResult
=
LISTVIEW_SetItemT
(
infoPtr
,
&
lvItem
,
TRUE
);
/*
* Update selection mark
*
* Investigation on windows 2k showed that selection mark was updated
* whenever a new selection was made, but if the selected item was
* unselected it was not updated.
*
* we are probably still not 100% accurate, but this at least sets the
* proper selection mark when it is needed
*/
if
(
bResult
&&
(
lvItem
.
state
&
lvItem
.
stateMask
&
LVIS_SELECTED
)
&&
(
infoPtr
->
nSelectionMark
==
-
1
))
{
int
i
;
for
(
i
=
0
;
i
<
infoPtr
->
nItemCount
;
i
++
)
{
if
(
infoPtr
->
uCallbackMask
&
LVIS_SELECTED
)
{
if
(
LISTVIEW_GetItemState
(
infoPtr
,
i
,
LVIS_SELECTED
))
{
infoPtr
->
nSelectionMark
=
i
;
break
;
}
}
else
if
(
ranges_contain
(
infoPtr
->
selectionRanges
,
i
))
{
infoPtr
->
nSelectionMark
=
i
;
break
;
}
}
}
return
bResult
;
return
bResult
;
}
}
...
...
dlls/comctl32/tests/listview.c
View file @
59e59c6b
...
@@ -1990,7 +1990,6 @@ static void test_multiselect(void)
...
@@ -1990,7 +1990,6 @@ static void test_multiselect(void)
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
expect
(
3
,
r
);
expect
(
3
,
r
);
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTIONMARK
,
0
,
0
);
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTIONMARK
,
0
,
0
);
todo_wine
expect
(
-
1
,
r
);
expect
(
-
1
,
r
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
...
@@ -2022,7 +2021,6 @@ todo_wine
...
@@ -2022,7 +2021,6 @@ todo_wine
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
expect
(
1
,
r
);
expect
(
1
,
r
);
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTIONMARK
,
0
,
0
);
r
=
SendMessage
(
hwnd
,
LVM_GETSELECTIONMARK
,
0
,
0
);
todo_wine
expect
(
-
1
,
r
);
expect
(
-
1
,
r
);
/* try to select all on LVS_SINGLESEL */
/* try to select all on LVS_SINGLESEL */
...
...
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