CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    4

    TreeView fastest populate

    When I populate my TreeView control whith a lot of data (> 5000), it takes a very long time.

    Any idea ?

    Lag

  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: TreeView fastest populate

    Have you used the SetRedraw method of CWnd ?

    When you insert items to tree every item will be drawed at the screen. Use SetRedraw(FALSE) before inserting and after you inserted the last item use SetRedraw().


  3. #3
    Join Date
    May 1999
    Posts
    4

    Re: TreeView fastest populate

    Yes I use the SetRedraw method of CWnd.


    Lag

  4. #4
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: TreeView fastest populate

    Are your data heavily recirsive?

    Sally


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