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

    Performance of ListView

    Hi,

    I need to know if there wasn't a quicker way to refresh my listview.
    At the moment I'm using GetListCtrl().DeleteAllItems and then recreating the items in the list. This can take quite a while if there's hundreds of items in the listview. How do you do it?

    Any ideas are welcome.

    TIA.



  2. #2
    Join Date
    Dec 1999
    Posts
    9

    Re: Performance of ListView

    Try this sequence:

    GetListCtrl().SetRedraw(FALSE);
    GetListCtrl().DeleteAllItems();
    GetListCtrl()FillEverythingin();
    GetListCtrl().SetRedraw(TRUE);



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