Author: jackson
Date: 2005-04-29 12:55:27 -0400 (Fri, 29 Apr 2005)
New Revision: 43796

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
        * ThemeWin32Classic.cs: Don't draw list view items that are
        outside the clipping rectangle.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-29 16:47:31 UTC (rev 43795)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-29 16:55:27 UTC (rev 43796)
@@ -1,3 +1,8 @@
+2005-04-29  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * ThemeWin32Classic.cs: Don't draw list view items that are
+       outside the clipping rectangle.
+
 2005-04-29  Jordi Mas i Hernandez <[EMAIL PROTECTED]>
 
        * ListBox.cs: added horizontal item scroll
@@ -2,3 +7,2 @@
 
-
 2005-04-29  Jackson Harper  <[EMAIL PROTECTED]>

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2005-04-29 16:47:31 UTC (rev 43795)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2005-04-29 16:55:27 UTC (rev 43796)
@@ -1105,7 +1105,7 @@
 
                #region ListView
                // Drawing
-               public override void DrawListView (Graphics dc, Rectangle 
clip_rectangle, ListView control)
+               public override void DrawListView (Graphics dc, Rectangle clip, 
ListView control)
                {
                        bool details = (control.View == View.Details);
 
@@ -1151,8 +1151,10 @@
                        // In case of details view draw the items only if
                        // columns are non-zero
                        if (!details || control.Columns.Count > 0)
-                               foreach (ListViewItem item in control.Items)
-                                       this.DrawListViewItem (dc, control, 
item);
+                               foreach (ListViewItem item in control.Items) {
+                                       if (clip.IntersectsWith 
(item.EntireRect))
+                                               DrawListViewItem (dc, control, 
item);
+                               }
 
                        // draw the gridlines
                        if (details && control.GridLines) {

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

Reply via email to