Inserting a List View Item
Hi,
Here is the tips for adding an item to the listview control in VC++.
The InsertItem function is used to add an item to a list view control:
Inserting a List View Itemm_listItem.InsertItem( &listItem );
A pointer to an LV_ITEM structure is passed as the parameter to InsertItem. LV_ITEM data members are filled with data for the new item before it is inserted.
listItem.mask = LVIF_TEXT;
listItem.iItem = 0;
listItem.pszText = szText;
m_listCtrl.InsertItem( &listItem );
thanks
