[1/2] comctl32/header: Reset internal drag state on mouse up

Nikolay Sivov bunglehead at gmail.com
Wed Apr 29 15:12:44 CDT 2009


It's easy to reproduce:
- try to drag an item like you do it changing order
- release mouse (it doesn't matter did the order changed)
- now click on divider and drag it to resize any item

You'll get a hot divider drawn on divider you've just dragged.

Changelog:
    - Reset internal drag state on mouse up

>From af460ff5b35bc94bdc71bc0959aff73dece66421 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 29 Apr 2009 21:31:05 +0400
Subject: Reset internal drag state on mouse up

---
 dlls/comctl32/header.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index f9eba99..7e6e0ff 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -1663,7 +1663,8 @@ HEADER_LButtonUp (HWND hwnd, LPARAM lParam)
 	    }
 	    else
 		InvalidateRect(hwnd, &infoPtr->items[infoPtr->iMoveItem].rect, FALSE);
-                
+
+            infoPtr->bDragging = FALSE;
             HEADER_SetHotDivider(hwnd, FALSE, -1);
 	}
 	else if (!(dwStyle&HDS_DRAGDROP) || !HEADER_IsDragDistance(infoPtr, &pt))
-- 
1.5.6.5





More information about the wine-patches mailing list