[6/6]comctl32: fix the position reported by WM_CONTEXTMENU
Daniel Jelinski
djelinski1 at gmail.com
Fri Jul 13 14:59:45 CDT 2012
-------------- next part --------------
From 425bc9d735b779aa07f272416c1adfe483dc853e Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Fri, 13 Jul 2012 21:27:14 +0200
Subject: [PATCH 6/6] comctl32: fix the position reported by WM_CONTEXTMENU
Judging by MSDN's description of GetMessagePos, it should be perfect here.
---
dlls/comctl32/treeview.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 0b118b7..79de8aa 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -4259,12 +4259,9 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
SetFocus(infoPtr->hwnd);
if(!TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK))
{
- /* Change to screen coordinate for WM_CONTEXTMENU */
- ClientToScreen(infoPtr->hwnd, &ht.pt);
-
/* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
SendMessageW(infoPtr->hwndNotify, WM_CONTEXTMENU,
- (WPARAM)infoPtr->hwnd, MAKELPARAM(ht.pt.x, ht.pt.y));
+ (WPARAM)infoPtr->hwnd, (LPARAM)GetMessagePos());
}
}
--
1.7.5.4
More information about the wine-patches
mailing list