Author: jackson
Date: 2006-01-17 18:08:04 -0500 (Tue, 17 Jan 2006)
New Revision: 55701

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:

        * ThemeWin32Classic.cs:
        * ListView.cs: Do not draw/clip the headers when the header
        * style
        is None.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-01-17 22:57:02 UTC (rev 55700)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-01-17 23:08:04 UTC (rev 55701)
@@ -1,3 +1,9 @@
+2006-01-17  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * ThemeWin32Classic.cs:
+       * ListView.cs: Do not draw/clip the headers when the header style
+       is None.
+
 2006-01-17  Jordi Mas i Hernandez <[EMAIL PROTECTED]>
 
        * DataGrid.cs: Fixes 77260

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-01-17 22:57:02 UTC (rev 55700)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-01-17 23:08:04 UTC (rev 55701)
@@ -1347,7 +1347,7 @@
                                int pixels =  v_marker - v_scroll.Value;
                                Rectangle area = client_area;
                                
-                               if (View == View.Details && Columns.Count > 0) {
+                               if (View == View.Details && header_style != 
ColumnHeaderStyle.None && Columns.Count > 0) {
                                        area.Y += Columns[0].Ht;
                                        area.Height -= Columns[0].Ht;
                                }

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2006-01-17 22:57:02 UTC (rev 55700)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2006-01-17 23:08:04 UTC (rev 55701)
@@ -1365,7 +1365,7 @@
                                else
                                        dc.DrawString (label.pieces[i].text, 
label.GetPieceFont (label.pieces[i]), ResPool.GetSolidBrush (color),
                                                label.pieces[i].rect.X, 
label.pieces[i].rect.Y);
-                                               
+
                                if (label.pieces[i].focused) {                  
                
                                        CPDrawFocusRectangle (dc, 
label.pieces[i].rect, label.ForeColor, label.BackColor);
                                }
@@ -1430,7 +1430,7 @@
                        Rectangle client_area_nohdrs;                   
                        DrawListViewHeader (dc, clip, control);
                        
-                       if (details && control.Columns.Count > 0) {
+                       if (details && control.HeaderStyle != 
ColumnHeaderStyle.None && control.Columns.Count > 0) {
                                client_area_nohdrs = control.client_area;
                                client_area_nohdrs.Y += control.Columns[0].Ht;
                                client_area_nohdrs.Height -= 
control.Columns[0].Ht;

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

Reply via email to