Author: mkestner
Date: 2006-07-24 13:17:03 -0400 (Mon, 24 Jul 2006)
New Revision: 62929

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:

2006-07-22  Mike Kestner  <[EMAIL PROTECTED]>

        * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
        menu handling code so that clicks without a grab work too.
        [Fixes #78914]


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-24 16:14:30 UTC (rev 62928)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-24 17:17:03 UTC (rev 62929)
@@ -1,3 +1,9 @@
+2006-07-22  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
+       menu handling code so that clicks without a grab work too.
+       [Fixes #78914]
+
 2006-07-22  Alexander Olk  <[EMAIL PROTECTED]>
 
        * FileDialog.cs: Enable the BackButton when dirstack has one element.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2006-07-24 16:14:30 UTC (rev 62928)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2006-07-24 17:17:03 UTC (rev 62929)
@@ -1787,7 +1787,7 @@
                                // Menu drawing
                                case Msg.WM_NCLBUTTONDOWN: {
                                        if (native_enabled && ActiveMenu != 
null) {
-                                               ActiveMenu.OnMouseDown(this, 
new MouseEventArgs (FromParamToMouseButtons ((int) m.WParam.ToInt32()), 
mouse_clicks, LowOrder ((int) m.LParam.ToInt32 ()), HighOrder ((int) 
m.LParam.ToInt32 ()), 0));
+                                               ActiveMenu.OnMouseDown(this, 
new MouseEventArgs (FromParamToMouseButtons ((int) m.WParam.ToInt32()), 
mouse_clicks, Control.MousePosition.X, Control.MousePosition.Y, 0));
                                        }
 
                                        if (ActiveMaximizedMdiChild != null) {

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

Reply via email to