Daniel Jelinski : comctl32/treeview: Fix the position reported by WM_CONTEXTMENU.

Alexandre Julliard julliard at winehq.org
Tue Jul 17 11:05:35 CDT 2012


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

Author: Daniel Jelinski <djelinski1 at gmail.com>
Date:   Fri Jul 13 21:27:14 2012 +0200

comctl32/treeview: Fix the position reported by WM_CONTEXTMENU.

---

 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());
 	}
     }
 




More information about the wine-cvs mailing list