Author: pbartok
Date: 2006-06-01 18:43:57 -0400 (Thu, 01 Jun 2006)
New Revision: 61390

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2006-06-01  Peter Dennis Bartok  <[EMAIL PROTECTED]> 

        * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
        * Control.cs (WndProc): MS always calls the DefWndProc to pass
          up the event



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-06-01 21:42:44 UTC (rev 61389)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-06-01 22:43:57 UTC (rev 61390)
@@ -1,3 +1,9 @@
+2006-06-01  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
+
+       * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
+       * Control.cs (WndProc): MS always calls the DefWndProc to pass
+         up the event
+
 2006-06-01  Mike Kestner  <[EMAIL PROTECTED]>
 
        * ListView.cs: revamp the focus management in ListView.  It still

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-06-01 21:42:44 UTC (rev 61389)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-06-01 22:43:57 UTC (rev 61390)
@@ -4032,7 +4032,7 @@
                                }
 
                                case Msg.WM_MOUSEWHEEL: {                       
        
-
+                                       DefWndProc(ref m);
                                        OnMouseWheel (new MouseEventArgs 
(FromParamToMouseButtons ((int) m.WParam.ToInt32()), 
                                                mouse_clicks, LowOrder ((int) 
m.LParam.ToInt32 ()), HighOrder ((int) m.LParam.ToInt32 ()), 
                                                HighOrder(m.WParam.ToInt32())));

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-06-01 21:42:44 UTC (rev 61389)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-06-01 22:43:57 UTC (rev 61390)
@@ -2507,6 +2507,20 @@
                                        return IntPtr.Zero;
                                }
 
+                               case Msg.WM_MOUSEWHEEL: {
+                                       Hwnd hwnd;
+
+                                       hwnd = 
Hwnd.GetObjectFromWindow(msg.HWnd);
+
+                                       if ((hwnd != null) && (hwnd.parent != 
null)) {
+                                               
SendMessage(hwnd.parent.client_window, Msg.WM_MOUSEWHEEL, msg.WParam, 
msg.LParam);
+                                               if (msg.Result == IntPtr.Zero) {
+                                                       return IntPtr.Zero;
+                                               }
+                                       }
+                                       return IntPtr.Zero;
+                               }
+
                                case Msg.WM_SETCURSOR: {
                                        Hwnd    hwnd;
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to