user32: BM_SETSTATE handler needs to repaint the button including focus rectangle.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Apr 13 01:49:01 CDT 2010


While playing with the button painting bug I noticed that the button doesn't
repaint its focus when you hold mouse button and move it outside and then back
to the button.
---
 dlls/user32/button.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/button.c b/dlls/user32/button.c
index eacacbb..1263ede 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -531,7 +531,7 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
             if (!(state & BUTTON_HIGHLIGHTED)) break;
             set_button_state( hWnd, state & ~BUTTON_HIGHLIGHTED );
         }
-        paint_button( hWnd, btn_type, ODA_SELECT );
+        paint_button( hWnd, btn_type, ODA_DRAWENTIRE );
         break;
 
     case WM_NCHITTEST:
-- 
1.7.0.2




More information about the wine-patches mailing list