[5/6]comctl32: treeview should send WM_CONTEXTMENU only to its parent window, not to itself
Daniel Jelinski
djelinski1 at gmail.com
Fri Jul 13 14:59:12 CDT 2012
-------------- next part --------------
From efcf48e8bda39cd8a320271d235265a7619aca6f Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Fri, 13 Jul 2012 20:53:09 +0200
Subject: [PATCH 5/6] comctl32: treeview should send WM_CONTEXTMENU only to
its parent window, not to itself
Noticed while running regedit with WINEDEBUG=+message and native comctl
---
dlls/comctl32/treeview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index b784924..0b118b7 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -4263,7 +4263,7 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
ClientToScreen(infoPtr->hwnd, &ht.pt);
/* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
- SendMessageW(infoPtr->hwnd, WM_CONTEXTMENU,
+ SendMessageW(infoPtr->hwndNotify, WM_CONTEXTMENU,
(WPARAM)infoPtr->hwnd, MAKELPARAM(ht.pt.x, ht.pt.y));
}
}
--
1.7.5.4
More information about the wine-patches
mailing list