Commit c68843f8 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

user32: Send BM_SETCHECK before WM_CAPTURECHANGED and add tests.

parent 69d5e351
......@@ -334,7 +334,6 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
break;
}
SendMessageW( hWnd, BM_SETSTATE, FALSE, 0 );
ReleaseCapture();
GetClientRect( hWnd, &rect );
if (uMsg == WM_KEYUP || PtInRect( &rect, pt ))
{
......@@ -354,6 +353,7 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
}
BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
}
ReleaseCapture();
break;
case WM_CAPTURECHANGED:
......
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