Click to See Complete Forum and Search --> : MFC List Control: How to add a subitem in a list control?


Gabriel Fleseriu
February 14th, 2003, 08:35 AM
Q: How to add a subitem in a list control?

A:


Display the first item in the list control:


m_myListControl.InsertItem(0, "MyString");

<br>
Display a subitem in the list control:


m_myListControl.SetItemText(0, 1, "MySubitemString");


<br><br>