Question

When I do like this

        list.InsertItem(LVIF_TEXT,0,left,0,0,0,NULL);
    list.InsertItem(LVIF_TEXT,1,right,0,0,0,NULL);

It inserts string "right" under "left".

Was it helpful?

Solution

CListCtrl::SetItemText() is your friend

int nItem = list.InsertItem(0, _T("1st column"));
list.SetItemText(nItem, 1, _T("2nd column"));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top