small button patch
Rein Klazes
rklazes at xs4all.nl
Tue Jan 15 03:06:15 CST 2002
hi,
Application does a SetCapture() when the mousepointer is moved above a
button. In this case the button should NOT change state, unless the
mouse button is pressed. Verified under Win2000.
controls/ : button.c
Don't change button state on WM_MOUSEMOVE messages unless left
mouse button is pressed.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/controls/button.c Sat Jan 5 09:00:19 2002
+++ mywine/controls/button.c Mon Jan 14 22:01:20 2002
@@ -279,7 +279,7 @@
break;
case WM_MOUSEMOVE:
- if (GetCapture() == hWnd)
+ if ((wParam & MK_LBUTTON) && GetCapture() == hWnd)
{
GetClientRect( hWnd, &rect );
SendMessageW( hWnd, BM_SETSTATE, PtInRect(&rect, pt), 0 );
More information about the wine-patches
mailing list