Owen Rudge : comctl32: Only execute hit test in MouseMove if necessary.

Alexandre Julliard julliard at winehq.org
Mon Oct 19 09:56:06 CDT 2009


Module: wine
Branch: master
Commit: 685fe55f975e9664e04cdf99c752e4f824dbe990
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=685fe55f975e9664e04cdf99c752e4f824dbe990

Author: Owen Rudge <orudge at codeweavers.com>
Date:   Fri Oct 16 10:20:52 2009 -0500

comctl32: Only execute hit test in MouseMove if necessary.

---

 dlls/comctl32/listview.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 6e73b55..4de9149 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -3620,12 +3620,6 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
         if (y > infoPtr->rcList.bottom)
             y = infoPtr->rcList.bottom;
 
-        tmp.x = x;
-        tmp.y = y;
-
-        lvHitTestInfo.pt = tmp;
-        LISTVIEW_HitTest(infoPtr, &lvHitTestInfo, TRUE, TRUE);
-
         if (infoPtr->bMarqueeSelect)
         {
             LVITEMW item;
@@ -3708,6 +3702,12 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
         rect.top = infoPtr->ptClickPos.y - wDragHeight;
         rect.bottom = infoPtr->ptClickPos.y + wDragHeight;
 
+        tmp.x = x;
+        tmp.y = y;
+
+        lvHitTestInfo.pt = tmp;
+        LISTVIEW_HitTest(infoPtr, &lvHitTestInfo, TRUE, TRUE);
+
         /* reset item marker */
         if (infoPtr->nLButtonDownItem != lvHitTestInfo.iItem)
             infoPtr->nLButtonDownItem = -1;




More information about the wine-cvs mailing list