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

button is pressed.
This commit is contained in:
Rein Klazes 2002-01-15 20:27:30 +00:00 committed by Alexandre Julliard
parent 93ece68077
commit 0e4cf6c083
1 changed files with 1 additions and 1 deletions

View File

@ -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 );