I am trying:
void MyListCtrl::UpdateWidthOfColumns( void )
{
int NofColumns = GetItemCount();
for (int i = 0; i < NofColumns - 1 ; ++i)
{
SetColumnWidth( i, LVSCW_AUTOSIZE_USEHEADER );
}
}
result: width of each column is adjusted to it`s header string size, not to the largest string.
What I am doing wrong?