[1/3] comctl32/listview: Block header items drag if LVS_EX_HEADERDRAGDROP isn't set
Nikolay Sivov
bunglehead at gmail.com
Mon Jun 15 17:02:17 CDT 2009
Changelog:
- block header items drag if LVS_EX_HEADERDRAGDROP isn't set
- also forward drag notifications to parent.
>From 4364744b2123775a0b498b3a8fac5cb088efe576 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 15 Jun 2009 18:15:51 +0400
Subject: Block header items drag if LVS_EX_HEADERDRAGDROP isn't set.
Also forward drag notifications to parent.
---
dlls/comctl32/listview.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index fd377ff..24c298e 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9233,11 +9233,16 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
LISTVIEW_DrawTrackLine(infoPtr);
infoPtr->xTrackLine = -1;
break;
-
+
+ case HDN_BEGINDRAG:
+ notify_forward_header(infoPtr, lpnmh);
+ return (infoPtr->dwLvExStyle & LVS_EX_HEADERDRAGDROP) == 0;
+
case HDN_ENDDRAG:
FIXME("Changing column order not implemented\n");
+ notify_forward_header(infoPtr, lpnmh);
return TRUE;
-
+
case HDN_ITEMCHANGINGW:
case HDN_ITEMCHANGINGA:
return notify_forward_header(infoPtr, lpnmh);
--
1.5.6.5
More information about the wine-patches
mailing list