CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Dec 2009
    Posts
    161

    Re: add items to a list view

    I am sorry that was my mistake!

    Code:
    	for(itt=rows.begin(); itt!=rows.end(); ++itt)
    	{
    		lvi.iItem    = itt->first;
    		lvi.iSubItem = 0;
    
    		ListView_InsertItem(hlistview, &lvi);
    
    		ListView_SetItemText(hlistview, itt->first, 0, (LPWSTR)itt->second.szBreed);
    		ListView_SetItemText(hlistview, itt->first, 1, (LPWSTR)itt->second.szKind);
    		ListView_SetItemText(hlistview, itt->first, 2, (LPWSTR)itt->second.szPrice);
    
    	}
    Last edited by THEARTOFWEB; February 13th, 2010 at 08:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured