Author: jpobst
Date: 2008-02-05 15:17:21 -0500 (Tue, 05 Feb 2008)
New Revision: 94940

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
2008-02-05  Jonathan Pobst  <[EMAIL PROTECTED]>

        * Form.cs: If we change the active MDI child form, let the others
        know they need to repaint their title bar so it will appear inactive.
        [Fixes part 1 of bug #325473]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-05 20:16:52 UTC (rev 94939)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-05 20:17:21 UTC (rev 94940)
@@ -1,3 +1,9 @@
+2008-02-05  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * Form.cs: If we change the active MDI child form, let the others
+       know they need to repaint their title bar so it will appear inactive.
+       [Fixes part 1 of bug #325473]
+
 2008-02-05  Ivan N. Zlatev  <[EMAIL PROTECTED]>
 
         * PropertyGridView.cs: Do not trucate custom editors' width

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2008-02-05 20:16:52 UTC (rev 94939)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2008-02-05 20:17:21 UTC (rev 94940)
@@ -1960,6 +1960,12 @@
                                        
                                        wm = window_manager as MdiWindowManager;
                                        wm.RaiseActivated ();
+
+                                       // We need to tell everyone who may 
have just been deactivated to redraw their titlebar
+                                       if (MdiParent != null)
+                                               foreach (Form form in 
MdiParent.MdiChildren)
+                                                       if (form != this && 
form.IsHandleCreated)
+                                                               
XplatUI.InvalidateNC (form.Handle);
                                }
                                
                                if (window_state != FormWindowState.Normal) {

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

Reply via email to