comctl32/treeview: Clean up mouse tracking code.

This commit is contained in:
Daniel Jelinski 2012-07-13 19:53:40 +02:00 committed by Alexandre Julliard
parent d104741a3c
commit 7e56fd38d8
1 changed files with 1 additions and 2 deletions

View File

@ -4043,8 +4043,6 @@ TREEVIEW_TrackMouse(const TREEVIEW_INFO *infoPtr, POINT pt)
else if (msg.message >= WM_LBUTTONDOWN &&
msg.message <= WM_RBUTTONDBLCLK)
{
if (msg.message == WM_RBUTTONUP)
TREEVIEW_RButtonUp(infoPtr, &pt);
break;
}
@ -4259,6 +4257,7 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
}
else
{
TREEVIEW_RButtonUp(infoPtr, &ht.pt);
SetFocus(infoPtr->hwnd);
TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK);
}