comctl32/treeview: Fix the position reported by WM_CONTEXTMENU.
This commit is contained in:
parent
067d528855
commit
baed448fc7
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue