2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Sat, 21 Jun 2008 01:10:50 +0000 (01:10 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Sat, 21 Jun 2008 01:10:50 +0000 (01:10 -0000)
* ListView.cs: Make HeaderControl internal, thus the theme engine can
get its *real* height instead of trying to infere it.
* ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
get the position of them, since it's in general a bad idea in general,
and because we can't do that in virtual mode. Instead get the first
visible item as well as item height, and draw them.
Fixes #400390.

svn path=/trunk/mcs/; revision=106342

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs

index 3efce64519cb2d4caf7a3f8a748cf49ec675cf8c..d3cf4de27918b97014e02f6c62752b8687894663 100644 (file)
@@ -1,3 +1,13 @@
+2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Make HeaderControl internal, thus the theme engine can
+       get its *real* height instead of trying to infere it.
+       * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
+       get the position of them, since it's in general a bad idea in general,
+       and because we can't do that in virtual mode. Instead get the first
+       visible item as well as item height, and draw them.
+       Fixes #400390.
+
 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
 
        * ToolStripSplitButton.cs: We can't add in extra width if
index d8d4490149cd20e232b4105c410ce3717c3bfa02..488333953a4db36d37690b1e254bc964a21fa03b 100644 (file)
@@ -87,7 +87,7 @@ namespace System.Windows.Forms
                private View view = View.LargeIcon;
                private int layout_wd;    // We might draw more than our client area
                private int layout_ht;    // therefore we need to have these two.
-               HeaderControl header_control;
+               internal HeaderControl header_control;
                internal ItemControl item_control;
                internal ScrollBar h_scroll; // used for scrolling horizontally
                internal ScrollBar v_scroll; // used for scrolling vertically
@@ -3962,7 +3962,7 @@ namespace System.Windows.Forms
 
                #region Subclasses
 
-               class HeaderControl : Control {
+               internal class HeaderControl : Control {
 
                        ListView owner;
                        bool column_resize_active = false;