The code and its assumptions were correct only for generic wxHeaderCtrl,
it didn't work for MSW implementation. Fixed by updating all columns
every time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66729
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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);
}
}