mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 07:36:35 +00:00
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 a new issue