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;