protected bool NeedsCustomDraw()
{
if (this.WordWrap)
return true;
if (this.ListView.HeaderUsesThemes)
return false;
if (this.NeedsCustomDraw(this.ListView.HeaderFormatStyle))
return true;
foreach (OLVColumn column in this.ListView.Columns) {
if (column.HasHeaderImage ||
!column.ShowTextInHeader ||
column.IsHeaderVertical ||
this.HasFilterIndicator(column) ||
column.TextAlign != column.HeaderTextAlign ||
this.NeedsCustomDraw(column.HeaderFormatStyle))
return true;
}
return false;
}