Commit 7e56fd38 authored by Daniel Jelinski's avatar Daniel Jelinski Committed by Alexandre Julliard

comctl32/treeview: Clean up mouse tracking code.

parent d104741a
...@@ -4043,8 +4043,6 @@ TREEVIEW_TrackMouse(const TREEVIEW_INFO *infoPtr, POINT pt) ...@@ -4043,8 +4043,6 @@ TREEVIEW_TrackMouse(const TREEVIEW_INFO *infoPtr, POINT pt)
else if (msg.message >= WM_LBUTTONDOWN && else if (msg.message >= WM_LBUTTONDOWN &&
msg.message <= WM_RBUTTONDBLCLK) msg.message <= WM_RBUTTONDBLCLK)
{ {
if (msg.message == WM_RBUTTONUP)
TREEVIEW_RButtonUp(infoPtr, &pt);
break; break;
} }
...@@ -4259,6 +4257,7 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam) ...@@ -4259,6 +4257,7 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
} }
else else
{ {
TREEVIEW_RButtonUp(infoPtr, &ht.pt);
SetFocus(infoPtr->hwnd); SetFocus(infoPtr->hwnd);
TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK); TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment