+2008-09-02 Jonathan Pobst <monkey@jpobst.com>
+
+ * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
+ to Windows when creating a window, as we fake MDI stuffs.
+ [Fixes bug #421858]
+
2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
* TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
string class_name = RegisterWindowClass (cp.ClassStyle);
HwndCreating = hwnd;
+ // We cannot actually send the WS_EX_MDICHILD flag to Windows because we
+ // are faking MDI, not uses Windows' version.
+ if ((cp.WindowExStyle & WindowExStyles.WS_EX_MDICHILD) == WindowExStyles.WS_EX_MDICHILD)
+ cp.WindowExStyle ^= WindowExStyles.WS_EX_MDICHILD;
+
WindowHandle = Win32CreateWindow (cp.WindowExStyle, class_name, cp.Caption, cp.WindowStyle, location.X, location.Y, cp.Width, cp.Height, ParentHandle, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
HwndCreating = null;