mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[0.4.9][COMCTL32] Button.c Fix CORE-17260
Press'n'Hold of a button, then leaving the button rect should redraw the button in unpressed state Thanks to JIRA user 'I_kill_Bugs' for perfecting my initial experiments to fix that. It regressed by 0.4.9-dev-719-gb3fb8555bf
No need to sync anything with Wine, their code is correct on Wine head. The bug was in ros specific diff. cherry picked from commit 0.4.15-dev-1085-gc947eb4d17
This commit is contained in:
parent
5b8e1230d1
commit
ae666420d0
1 changed files with 1 additions and 2 deletions
|
@ -850,7 +850,6 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
|
||||||
mouse_event.dwHoverTime = 1;
|
mouse_event.dwHoverTime = 1;
|
||||||
TrackMouseEvent(&mouse_event);
|
TrackMouseEvent(&mouse_event);
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
if (!TrackMouseEvent(&mouse_event) || !(mouse_event.dwFlags & (TME_HOVER | TME_LEAVE)))
|
if (!TrackMouseEvent(&mouse_event) || !(mouse_event.dwFlags & (TME_HOVER | TME_LEAVE)))
|
||||||
|
@ -860,6 +859,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
|
||||||
mouse_event.dwHoverTime = 1;
|
mouse_event.dwHoverTime = 1;
|
||||||
TrackMouseEvent(&mouse_event);
|
TrackMouseEvent(&mouse_event);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((wParam & MK_LBUTTON) && GetCapture() == hWnd)
|
if ((wParam & MK_LBUTTON) && GetCapture() == hWnd)
|
||||||
{
|
{
|
||||||
|
@ -867,7 +867,6 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
|
||||||
SendMessageW( hWnd, BM_SETSTATE, PtInRect(&rect, pt), 0 );
|
SendMessageW( hWnd, BM_SETSTATE, PtInRect(&rect, pt), 0 );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
|
|
Loading…
Reference in a new issue