Daniel Jelinski : comctl32/treeview: Send WM_CONTEXTMENU everywhere, not just over items.
Alexandre Julliard
julliard at winehq.org
Tue Jul 17 11:05:35 CDT 2012
Module: wine
Branch: master
Commit: c7212f8262a6aeac9856a1d22668bca0fc47dd14
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7212f8262a6aeac9856a1d22668bca0fc47dd14
Author: Daniel Jelinski <djelinski1 at gmail.com>
Date: Fri Jul 13 20:42:33 2012 +0200
comctl32/treeview: Send WM_CONTEXTMENU everywhere, not just over items.
---
dlls/comctl32/treeview.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index e55c941..88c1ff4 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -4274,17 +4274,12 @@ TREEVIEW_RButtonUp(const TREEVIEW_INFO *infoPtr, const POINT *pPt)
ht.pt = *pPt;
- TREEVIEW_HitTest(infoPtr, &ht);
-
- if (ht.hItem)
- {
- /* Change to screen coordinate for WM_CONTEXTMENU */
- ClientToScreen(infoPtr->hwnd, &ht.pt);
+ /* Change to screen coordinate for WM_CONTEXTMENU */
+ ClientToScreen(infoPtr->hwnd, &ht.pt);
- /* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
- SendMessageW(infoPtr->hwnd, WM_CONTEXTMENU,
- (WPARAM)infoPtr->hwnd, MAKELPARAM(ht.pt.x, ht.pt.y));
- }
+ /* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
+ SendMessageW(infoPtr->hwnd, WM_CONTEXTMENU,
+ (WPARAM)infoPtr->hwnd, MAKELPARAM(ht.pt.x, ht.pt.y));
return 0;
}
More information about the wine-cvs
mailing list