- Patch by Alex Henrie : Send BM_SETCHECK before WM_CAPTURECHANGED and add tests.

svn path=/trunk/; revision=69233
This commit is contained in:
James Tabor 2015-09-15 00:15:16 +00:00
parent 8c0d5e2546
commit 3b7e00591f

View file

@ -408,7 +408,6 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
break;
}
SendMessageW( hWnd, BM_SETSTATE, FALSE, 0 );
ReleaseCapture();
GetClientRect( hWnd, &rect );
if (uMsg == WM_KEYUP || PtInRect( &rect, pt ))
{
@ -428,6 +427,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
}
BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
}
ReleaseCapture();
break;
case WM_CAPTURECHANGED: