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
9b057494
Commit
9b057494
authored
Oct 29, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Get rid of DragDetect.
parent
929dcfaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
listview.c
dlls/comctl32/listview.c
+13
-9
No files found.
dlls/comctl32/listview.c
View file @
9b057494
...
@@ -3326,16 +3326,20 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
...
@@ -3326,16 +3326,20 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
if
(
infoPtr
->
bLButtonDown
)
if
(
infoPtr
->
bLButtonDown
)
{
{
MSG
msg
;
POINT
tmp
;
BOOL
skip
=
FALSE
;
RECT
rect
;
/* Check to see if we got a WM_LBUTTONUP, and skip the DragDetect.
WORD
wDragWidth
=
GetSystemMetrics
(
SM_CXDRAG
);
* Otherwise, DragDetect will eat it.
WORD
wDragHeight
=
GetSystemMetrics
(
SM_CYDRAG
);
*/
if
(
PeekMessageW
(
&
msg
,
0
,
WM_MOUSEFIRST
,
WM_MOUSELAST
,
PM_NOREMOVE
))
rect
.
left
=
infoPtr
->
ptClickPos
.
x
-
wDragWidth
;
if
(
msg
.
message
==
WM_LBUTTONUP
)
rect
.
right
=
infoPtr
->
ptClickPos
.
x
+
wDragWidth
;
skip
=
TRUE
;
rect
.
top
=
infoPtr
->
ptClickPos
.
y
-
wDragHeight
;
rect
.
bottom
=
infoPtr
->
ptClickPos
.
y
+
wDragHeight
;
tmp
.
x
=
x
;
tmp
.
y
=
y
;
if
(
!
skip
&&
DragDetect
(
infoPtr
->
hwndSelf
,
infoPtr
->
ptClickPos
))
if
(
!
PtInRect
(
&
rect
,
tmp
))
{
{
LVHITTESTINFO
lvHitTestInfo
;
LVHITTESTINFO
lvHitTestInfo
;
NMLISTVIEW
nmlv
;
NMLISTVIEW
nmlv
;
...
...
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