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
5f9b0db2
Commit
5f9b0db2
authored
Sep 10, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: listview: Prevent DragDetect from removing WM_LBUTTONUP messages.
parent
d7794170
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
listview.c
dlls/comctl32/listview.c
+22
-10
No files found.
dlls/comctl32/listview.c
View file @
5f9b0db2
...
...
@@ -3321,21 +3321,33 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
if
(
!
(
fwKeys
&
MK_LBUTTON
))
infoPtr
->
bLButtonDown
=
FALSE
;
if
(
infoPtr
->
bLButtonDown
&&
DragDetect
(
infoPtr
->
hwndSelf
,
infoPtr
->
ptClickPos
)
)
if
(
infoPtr
->
bLButtonDown
)
{
LVHITTESTINFO
lvHitTestInfo
;
NMLISTVIEW
nmlv
;
MSG
msg
;
BOOL
skip
=
FALSE
;
/* Check to see if we got a WM_LBUTTONUP, and skip the DragDetect.
* Otherwise, DragDetect will eat it.
*/
if
(
PeekMessageW
(
&
msg
,
0
,
WM_MOUSEFIRST
,
WM_MOUSELAST
,
PM_NOREMOVE
))
if
(
msg
.
message
==
WM_LBUTTONUP
)
skip
=
TRUE
;
if
(
!
skip
&&
DragDetect
(
infoPtr
->
hwndSelf
,
infoPtr
->
ptClickPos
))
{
LVHITTESTINFO
lvHitTestInfo
;
NMLISTVIEW
nmlv
;
lvHitTestInfo
.
pt
=
infoPtr
->
ptClickPos
;
LISTVIEW_HitTest
(
infoPtr
,
&
lvHitTestInfo
,
TRUE
,
TRUE
);
lvHitTestInfo
.
pt
=
infoPtr
->
ptClickPos
;
LISTVIEW_HitTest
(
infoPtr
,
&
lvHitTestInfo
,
TRUE
,
TRUE
);
ZeroMemory
(
&
nmlv
,
sizeof
(
nmlv
));
nmlv
.
iItem
=
lvHitTestInfo
.
iItem
;
nmlv
.
ptAction
=
infoPtr
->
ptClickPos
;
ZeroMemory
(
&
nmlv
,
sizeof
(
nmlv
));
nmlv
.
iItem
=
lvHitTestInfo
.
iItem
;
nmlv
.
ptAction
=
infoPtr
->
ptClickPos
;
notify_listview
(
infoPtr
,
LVN_BEGINDRAG
,
&
nmlv
);
notify_listview
(
infoPtr
,
LVN_BEGINDRAG
,
&
nmlv
);
return
0
;
return
0
;
}
}
else
infoPtr
->
bLButtonDown
=
FALSE
;
...
...
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