Skip to content
Snippets Groups Projects
Commit d41e22bf authored by Louis Philippe Gagnon's avatar Louis Philippe Gagnon Committed by Alexandre Julliard
Browse files

Do not send a WM_CONTEXTMENU message when a TreeView receives a

WM_RBUTTONUP.
parent 47132366
Branches
Tags
No related merge requests found
......@@ -3817,13 +3817,6 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
static LRESULT
TREEVIEW_RButtonUp(TREEVIEW_INFO *infoPtr, LPPOINT pPt)
{
HWND hwnd = infoPtr->hwnd;
POINT pt = *pPt;
/* Change to screen coordinate for WM_CONTEXTMENU */
ClientToScreen(hwnd, &pt);
SendMessageA(hwnd, WM_CONTEXTMENU, (WPARAM)hwnd, MAKELPARAM(pt.x, pt.y));
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment