comctl32/treeview: Send WM_CONTEXTMENU everywhere, not just over items.
This commit is contained in:
parent
602dea1e12
commit
c7212f8262
|
@ -4274,17 +4274,12 @@ TREEVIEW_RButtonUp(const TREEVIEW_INFO *infoPtr, const POINT *pPt)
|
|||
|
||||
ht.pt = *pPt;
|
||||
|
||||
TREEVIEW_HitTest(infoPtr, &ht);
|
||||
/* Change to screen coordinate for WM_CONTEXTMENU */
|
||||
ClientToScreen(infoPtr->hwnd, &ht.pt);
|
||||
|
||||
if (ht.hItem)
|
||||
{
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue