comctl32/treeview: Send WM_CONTEXTMENU only to parent window.

This commit is contained in:
Daniel Jelinski 2012-07-13 20:53:09 +02:00 committed by Alexandre Julliard
parent 5e86d84337
commit 067d528855
1 changed files with 1 additions and 1 deletions

View File

@ -4263,7 +4263,7 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
ClientToScreen(infoPtr->hwnd, &ht.pt);
/* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
SendMessageW(infoPtr->hwnd, WM_CONTEXTMENU,
SendMessageW(infoPtr->hwndNotify, WM_CONTEXTMENU,
(WPARAM)infoPtr->hwnd, MAKELPARAM(ht.pt.x, ht.pt.y));
}
}