Author: everaldo
Date: 2007-04-03 23:02:43 -0400 (Tue, 03 Apr 2007)
New Revision: 75373
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
* Form.cs: Fix mouse position when send back mouse event after closes
menu.
2007-04-03 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-04 02:50:40 UTC (rev 75372)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-04 03:02:43 UTC (rev 75373)
@@ -1,5 +1,10 @@
2007-04-03 Everaldo Canuto <[EMAIL PROTECTED]>
+ * Form.cs: Fix mouse position when send back mouse event after closes
+ menu.
+
+2007-04-03 Everaldo Canuto <[EMAIL PROTECTED]>
+
* Form.cs: Simplify the BUTTONDOWN for active tracker.
2007-04-03 Jonathan Pobst <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-04-04 02:50:40 UTC (rev 75372)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-04-04 03:02:43 UTC (rev 75373)
@@ -2383,10 +2383,11 @@
0);
if (!active_tracker.OnMouseDown
(args)) {
- Point pt =
PointToClient (Cursor.Position);
- Control child_control =
this.GetChildAtPoint (pt);
- if (child_control !=
null)
-
XplatUI.SendMessage(child_control.Handle, (Msg) m.Msg, m.WParam, m.LParam);
+ Control control =
this.GetChildAtPoint (PointToClient (Cursor.Position));
+ if (control != null) {
+ Point pt =
control.PointToClient (Cursor.Position);
+
XplatUI.SendMessage (control.Handle, (Msg) m.Msg, m.WParam, MakeParam (pt.X,
pt.Y));
+ }
}
return;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches