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
7c55bc0c
Commit
7c55bc0c
authored
Dec 15, 2000
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Dec 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only capture mouse when an item is selected.
parent
7d646764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
listbox.c
controls/listbox.c
+25
-25
No files found.
controls/listbox.c
View file @
7c55bc0c
...
...
@@ -1927,39 +1927,39 @@ static LRESULT LISTBOX_HandleLButtonDown( WND *wnd, LB_DESCR *descr,
:
descr
->
lphc
->
self
->
hwndSelf
);
}
if
(
index
!=
-
1
)
if
(
index
==
-
1
)
return
0
;
if
(
descr
->
style
&
LBS_EXTENDEDSEL
)
{
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
)
{
LISTBOX_SetCaretIndex
(
wnd
,
descr
,
index
,
FALSE
);
LISTBOX_SetSelection
(
wnd
,
descr
,
index
,
!
descr
->
items
[
index
].
selected
,
(
descr
->
style
&
LBS_NOTIFY
)
!=
0
);
}
else
LISTBOX_MoveCaret
(
wnd
,
descr
,
index
,
FALSE
);
}
else
/* 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
)
{
LISTBOX_
MoveCaret
(
wnd
,
descr
,
index
,
FALSE
);
LISTBOX_
SetCaretIndex
(
wnd
,
descr
,
index
,
FALSE
);
LISTBOX_SetSelection
(
wnd
,
descr
,
index
,
(
!
(
descr
->
style
&
LBS_MULTIPLESEL
)
||
!
descr
->
items
[
index
].
selected
),
(
descr
->
style
&
LBS_NOTIFY
)
!=
0
);
!
descr
->
items
[
index
].
selected
,
(
descr
->
style
&
LBS_NOTIFY
)
!=
0
);
}
else
LISTBOX_MoveCaret
(
wnd
,
descr
,
index
,
FALSE
);
}
else
{
LISTBOX_MoveCaret
(
wnd
,
descr
,
index
,
FALSE
);
LISTBOX_SetSelection
(
wnd
,
descr
,
index
,
(
!
(
descr
->
style
&
LBS_MULTIPLESEL
)
||
!
descr
->
items
[
index
].
selected
),
(
descr
->
style
&
LBS_NOTIFY
)
!=
0
);
}
descr
->
captured
=
TRUE
;
SetCapture
(
wnd
->
hwndSelf
);
if
(
index
!=
-
1
&&
!
descr
->
lphc
)
if
(
!
descr
->
lphc
)
{
if
(
descr
->
style
&
LBS_NOTIFY
)
SendMessageA
(
descr
->
owner
,
WM_LBTRACKPOINT
,
index
,
...
...
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