comctl32/treeview: Fix NM_RCLICK behavior.

This commit is contained in:
Daniel Jelinski 2012-07-13 20:11:38 +02:00 committed by Alexandre Julliard
parent 7e56fd38d8
commit 602dea1e12
1 changed files with 4 additions and 2 deletions

View File

@ -4257,9 +4257,11 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
}
else
{
TREEVIEW_RButtonUp(infoPtr, &ht.pt);
SetFocus(infoPtr->hwnd);
TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK);
if(!TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK))
{
TREEVIEW_RButtonUp(infoPtr, &ht.pt);
}
}
return 0;