Reset BUTTON_HASFOCUS state in WM_KILLFOCUS handler before calling

ReleaseCapture.
This commit is contained in:
Dmitry Timoshkov 2004-09-07 19:33:11 +00:00 committed by Alexandre Julliard
parent 7cdd584d7d
commit 5344d70c16
1 changed files with 3 additions and 3 deletions

View File

@ -364,11 +364,11 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
case WM_KILLFOCUS:
state = get_button_state( hWnd );
if ((state & BUTTON_BTNPRESSED) && GetCapture() == hWnd)
ReleaseCapture();
set_button_state( hWnd, state & ~BUTTON_HASFOCUS );
paint_button( hWnd, btn_type, ODA_FOCUS );
if ((state & BUTTON_BTNPRESSED) && GetCapture() == hWnd)
ReleaseCapture();
break;
case WM_SYSCOLORCHANGE: