return *(GetOwner()->GetColumn(idx));
}
- // FIXME: currently unused
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle)
{
wxDataViewCtrl * const owner = GetOwner();
calculator.UpdateWithRow(row);
}
- // row is the first unmeasured item now; that's out value of N/2
+ // row is the first unmeasured item now; that's our value of N/2
if ( row < count )
{
const_cast<wxDataViewCtrl*>(this)->m_colsBestWidths[idx] = max_width;
return max_width;
-
- #undef MEASURE_ITEM
}
void wxDataViewCtrl::ColumnMoved(wxDataViewColumn * WXUNUSED(col),
if ( m_headerArea )
{
- // this updates visual appearance of columns 0 and up, not just 0
- m_headerArea->UpdateColumn(0);
+ const unsigned cols = m_headerArea->GetColumnCount();
+ for ( unsigned i = 0; i < cols; i++ )
+ m_headerArea->UpdateColumn(i);
}
}