=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: comctl32/button: Preserve BST_HOT when mouse button is released.
Alexandre Julliard
julliard at winehq.org
Mon Apr 22 16:30:39 CDT 2019
Module: wine
Branch: master
Commit: d89facbc50db52f3269173f4989943902c9cac9f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d89facbc50db52f3269173f4989943902c9cac9f
Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date: Fri Apr 19 15:13:58 2019 +0300
comctl32/button: Preserve BST_HOT when mouse button is released.
This fixes button state when it is released and the mouse is still
hot-tracking it.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c
index 5338ef8..38e2f5d 100644
--- a/dlls/comctl32/button.c
+++ b/dlls/comctl32/button.c
@@ -599,7 +599,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
if (state & BST_DROPDOWNPUSHED)
SendMessageW(hWnd, BCM_SETDROPDOWNSTATE, FALSE, 0);
if (!(state & BUTTON_BTNPRESSED)) break;
- infoPtr->state &= BUTTON_NSTATES;
+ infoPtr->state &= BUTTON_NSTATES | BST_HOT;
if (!(state & BST_PUSHED))
{
ReleaseCapture();
More information about the wine-cvs
mailing list