Commit 0e4cf6c0 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Don't change button state on WM_MOUSEMOVE messages unless left mouse

button is pressed.
parent 93ece680
......@@ -279,7 +279,7 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
break;
case WM_MOUSEMOVE:
if (GetCapture() == hWnd)
if ((wParam & MK_LBUTTON) && GetCapture() == hWnd)
{
GetClientRect( hWnd, &rect );
SendMessageW( hWnd, BM_SETSTATE, PtInRect(&rect, pt), 0 );
......
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