Do not send a WM_CONTEXTMENU message when a TreeView receives a
WM_RBUTTONUP.
This commit is contained in:
parent
471323665d
commit
d41e22bf0d
@ -3817,13 +3817,6 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
|
|||||||
static LRESULT
|
static LRESULT
|
||||||
TREEVIEW_RButtonUp(TREEVIEW_INFO *infoPtr, LPPOINT pPt)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user