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
fc2404bc
Commit
fc2404bc
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: Handle listview dragging better.
parent
5f9b0db2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
listview.c
dlls/comctl32/listview.c
+13
-1
No files found.
dlls/comctl32/listview.c
View file @
fc2404bc
...
...
@@ -257,6 +257,7 @@ typedef struct tagLISTVIEW_INFO
HIMAGELIST
himlState
;
BOOL
bLButtonDown
;
BOOL
bRButtonDown
;
BOOL
bDragging
;
POINT
ptClickPos
;
/* point where the user clicked */
BOOL
bNoItemMetrics
;
/* flags if item metrics are not yet computed */
INT
nItemHeight
;
...
...
@@ -3344,7 +3345,11 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
nmlv
.
iItem
=
lvHitTestInfo
.
iItem
;
nmlv
.
ptAction
=
infoPtr
->
ptClickPos
;
notify_listview
(
infoPtr
,
LVN_BEGINDRAG
,
&
nmlv
);
if
(
!
infoPtr
->
bDragging
)
{
notify_listview
(
infoPtr
,
LVN_BEGINDRAG
,
&
nmlv
);
infoPtr
->
bDragging
=
TRUE
;
}
return
0
;
}
...
...
@@ -8605,6 +8610,7 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
/* set left button down flag and record the click position */
infoPtr
->
bLButtonDown
=
TRUE
;
infoPtr
->
ptClickPos
=
pt
;
infoPtr
->
bDragging
=
FALSE
;
lvHitTestInfo
.
pt
.
x
=
x
;
lvHitTestInfo
.
pt
.
y
=
y
;
...
...
@@ -8716,6 +8722,12 @@ static LRESULT LISTVIEW_LButtonUp(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, INT
/* set left button flag */
infoPtr
->
bLButtonDown
=
FALSE
;
if
(
infoPtr
->
bDragging
)
{
infoPtr
->
bDragging
=
FALSE
;
return
0
;
}
/* if we clicked on a selected item, edit the label */
if
(
lvHitTestInfo
.
iItem
==
infoPtr
->
nEditLabelItem
&&
(
lvHitTestInfo
.
flags
&
LVHT_ONITEMLABEL
))
{
...
...
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