Daniel Jelinski : comctl32/treeview: Send WM_CONTEXTMENU everywhere, not just over items.
Module: wine Branch: master Commit: c7212f8262a6aeac9856a1d22668bca0fc47dd14 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7212f8262a6aeac9856a1d226... Author: Daniel Jelinski <djelinski1(a)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; }
participants (1)
-
Alexandre Julliard