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
0920079b
Commit
0920079b
authored
May 25, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't hittest when it's not needed.
parent
28bffafd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
listview.c
dlls/comctl32/listview.c
+9
-9
No files found.
dlls/comctl32/listview.c
View file @
0920079b
...
...
@@ -3401,8 +3401,6 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
if
(
!
PtInRect
(
&
rect
,
tmp
))
{
NMLISTVIEW
nmlv
;
/* this path covers the following:
1. WM_LBUTTONDOWN over selected item (sets focus on it)
2. change focus with keys
...
...
@@ -3419,15 +3417,17 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
infoPtr
->
nLButtonDownItem
=
-
1
;
}
lvHitTestInfo
.
pt
=
infoPtr
->
ptClickPos
;
LISTVIEW_HitTest
(
infoPtr
,
&
lvHitTestInfo
,
TRUE
,
TRUE
);
ZeroMemory
(
&
nmlv
,
sizeof
(
nmlv
));
nmlv
.
iItem
=
lvHitTestInfo
.
iItem
;
nmlv
.
ptAction
=
infoPtr
->
ptClickPos
;
if
(
!
infoPtr
->
bDragging
)
{
NMLISTVIEW
nmlv
;
lvHitTestInfo
.
pt
=
infoPtr
->
ptClickPos
;
LISTVIEW_HitTest
(
infoPtr
,
&
lvHitTestInfo
,
TRUE
,
TRUE
);
ZeroMemory
(
&
nmlv
,
sizeof
(
nmlv
));
nmlv
.
iItem
=
lvHitTestInfo
.
iItem
;
nmlv
.
ptAction
=
infoPtr
->
ptClickPos
;
notify_listview
(
infoPtr
,
LVN_BEGINDRAG
,
&
nmlv
);
infoPtr
->
bDragging
=
TRUE
;
}
...
...
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