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
e56178d9
Commit
e56178d9
authored
Feb 13, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work toward properly updating the SelectionMark when the selected
state changed inside a listbox.
parent
20fff3d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
listview.c
dlls/comctl32/listview.c
+34
-0
No files found.
dlls/comctl32/listview.c
View file @
e56178d9
...
...
@@ -7043,6 +7043,40 @@ static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, const LVITE
else
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
)
||
(
lvItem
.
iItem
<=
infoPtr
->
nSelectionMark
)))
{
int
i
;
infoPtr
->
nSelectionMark
=
-
1
;
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
;
}
...
...
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