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
2b5d9c6e
Commit
2b5d9c6e
authored
Aug 29, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Aug 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always call LISTVIEW_SetSelection() for an item, even if that item
has been selected before, in order to let other items get erased.
parent
618ce03e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
listbox.c
controls/listbox.c
+6
-0
listview.c
dlls/comctl32/listview.c
+7
-7
No files found.
controls/listbox.c
View file @
2b5d9c6e
...
...
@@ -1887,6 +1887,12 @@ static LRESULT LISTBOX_HandleLButtonDown( WND *wnd, LB_DESCR *descr,
{
if
(
descr
->
style
&
LBS_EXTENDEDSEL
)
{
/* we should perhaps make sure that all items are deselected
FIXME: needed for !LBS_EXTENDEDSEL, too ?
if (!(wParam & (MK_SHIFT|MK_CONTROL)))
LISTBOX_SetSelection( wnd, descr, -1, FALSE, FALSE);
*/
if
(
!
(
wParam
&
MK_SHIFT
))
descr
->
anchor_item
=
index
;
if
(
wParam
&
MK_CONTROL
)
{
...
...
dlls/comctl32/listview.c
View file @
2b5d9c6e
...
...
@@ -7887,16 +7887,16 @@ static LRESULT LISTVIEW_LButtonDown(HWND hwnd, WORD wKey, WORD wPosX,
}
else
{
if
(
ListView_GetItemState
(
hwnd
,
nItem
,
LVIS_SELECTED
)
&
LVIS_SELECTED
&&
infoPtr
->
nEditLabelItem
==
-
1
)
BOOL
was_selected
=
(
ListView_GetItemState
(
hwnd
,
nItem
,
LVIS_SELECTED
)
&
LVIS_SELECTED
);
/* set selection (clears other pre-existing selections) */
LISTVIEW_SetSelection
(
hwnd
,
nItem
);
if
(
was_selected
&&
infoPtr
->
nEditLabelItem
==
-
1
)
{
infoPtr
->
nEditLabelItem
=
nItem
;
}
else
{
LISTVIEW_SetSelection
(
hwnd
,
nItem
);
}
}
}
}
...
...
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