Click to See Complete Forum and Search --> : TreeView fastest populate


Lag
May 21st, 1999, 07:42 AM
When I populate my TreeView control whith a lot of data (> 5000), it takes a very long time.

Any idea ?

Lag

Franky Braem
May 21st, 1999, 08:41 AM
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().

Lag
May 21st, 1999, 10:17 AM
Yes I use the SetRedraw method of CWnd.


Lag

sally
May 22nd, 1999, 07:29 AM
Are your data heavily recirsive?

Sally

Sally
May 22nd, 1999, 07:29 AM
Are your data heavily recirsive?

Sally