r92608 - trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal

0 views
Skip to first unread message

Geoff Norton (gnorton@novell.com)

unread,
Jan 10, 2008, 1:07:27 PM1/10/08
to mono-p...@lists.ximian.com, ximian....@gmail.com, mono-svn-patche...@googlegroups.com
Author: gnorton
Date: 2008-01-10 13:07:27 -0500 (Thu, 10 Jan 2008)
New Revision: 92608

Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs
Log:
2008-01-10 Geoff Norton <gno...@novell.com>

* ControlHandler.cs: Ensure we send controls a WM_WINDOWPOSCHANGED
when their bounds are changed by the carbon system. Fixes initial sizing
of PDN DocumentWorkspace bug.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog 2008-01-10 18:00:35 UTC (rev 92607)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog 2008-01-10 18:07:27 UTC (rev 92608)
@@ -1,3 +1,9 @@
+2008-01-10 Geoff Norton <gno...@novell.com>
+
+ * ControlHandler.cs: Ensure we send controls a WM_WINDOWPOSCHANGED
+ when their bounds are changed by the carbon system. Fixes initial sizing
+ of PDN DocumentWorkspace bug.
+
2008-01-09 Geoff Norton <gno...@novell.com>

* WindowHandler.cs: Hide utility windows when the window is minimizing

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs 2008-01-10 18:00:35 UTC (rev 92607)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs 2008-01-10 18:07:27 UTC (rev 92608)
@@ -170,7 +170,11 @@
hwnd.Height = (int) view_frame.size.height;
Driver.PerformNCCalc (hwnd);
}
- return false;
+
+ msg.message = Msg.WM_WINDOWPOSCHANGED;
+ msg.hwnd = hwnd.Handle;
+
+ return true;
}
case kEventControlGetFocusPart: {
short pcode = 0;

Reply all
Reply to author
Forward
0 new messages