Author: pbartok
Date: 2006-08-10 15:24:45 -0400 (Thu, 10 Aug 2006)
New Revision: 63620

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs
Log:
2006-08-10  Peter Dennis Bartok  <[EMAIL PROTECTED]>

        * CommonDialog.cs: Properly inherit the CreateParams from the form
          and only change what we need. Fixes #78865



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-10 19:20:56 UTC (rev 63619)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-10 19:24:45 UTC (rev 63620)
@@ -1,3 +1,8 @@
+2006-08-10  Peter Dennis Bartok  <[EMAIL PROTECTED]>
+
+       * CommonDialog.cs: Properly inherit the CreateParams from the form
+         and only change what we need. Fixes #78865
+
 2006-08-10  Chris Toshok  <[EMAIL PROTECTED]>
 
        * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
@@ -27,12 +32,12 @@
 
        * ListBox.cs: same.
 
-2006-08-08  Peter Dennis Bartok  <[EMAIL PROTECTED]>
+2006-08-09  Peter Dennis Bartok  <[EMAIL PROTECTED]>
 
        * TextControl.cs (Document.ctor): Initialize caret so we don't crash
          if no data is in the document when the control is displayed
 
-2006-08-08  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
+2006-08-09  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
 
        * TextBoxBase.cs: Don't try moving the caret if we don't have a window
          yes (fixes #78806)
@@ -43,7 +48,7 @@
          - owner_HandleCreated: Don't position the caret, just update it's 
            location. User might have already set a different position
 
-2006-08-08  Peter Dennis Bartok  <[EMAIL PROTECTED]>
+2006-08-09  Peter Dennis Bartok  <[EMAIL PROTECTED]>
 
        * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
          windows. Screws up the returned coordinates for child windows. 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs  
2006-08-10 19:20:56 UTC (rev 63619)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs  
2006-08-10 19:24:45 UTC (rev 63620)
@@ -40,6 +40,11 @@
                        #region DialogForm Constructors
                        internal DialogForm(CommonDialog owner) {
                                this.owner = owner;
+                               ControlBox = true;
+                               MinimizeBox = false;
+                               MaximizeBox = false;
+                               ShowInTaskbar = false;
+                               FormBorderStyle = FormBorderStyle.Sizable;
                        }
                        #endregion DialogForm Constructors
 
@@ -48,16 +53,9 @@
                                get {
                                        CreateParams    cp;
 
-                                       ControlBox = true;
-                                       MinimizeBox = false;
-                                       MaximizeBox = false;
-
                                        cp = base.CreateParams;
 
-                                       cp.Style = (int)(WindowStyles.WS_POPUP 
| WindowStyles.WS_CAPTION | WindowStyles.WS_SYSMENU | 
WindowStyles.WS_CLIPCHILDREN | WindowStyles.WS_CLIPSIBLINGS);
-                                       if (!is_enabled) {
-                                               cp.Style |= 
(int)(WindowStyles.WS_DISABLED);
-                                       }
+                                       cp.Style |= (int)(WindowStyles.WS_POPUP 
| WindowStyles.WS_CAPTION | WindowStyles.WS_SYSMENU);
 
                                        return cp;
                                }

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

Reply via email to