Just use a listctrl in my view, and when I insert item like this, the data won't be able to display multiple rows of data correctly

Code:
     this->m_ListCtrl.InsertItem(i,name,0);
     s.Format("%s",name);
     this->m_ListCtrl.SetItemText(i,0,s);
there are several item block has no text displayed in the listctrl at all.
but if you change format line into
Code:
s.Format(" %s",name);
by adding an extra space in front of the %s, it will work. Wondering why...