small button patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xs4all.nl
--- 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 );

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux