Click to See Complete Forum and Search --> : How to remove Flicker from TreeView in Splitter Windows


Kuda Tsai
August 26th, 1999, 12:31 AM
Hi:

I have a TreeView in a Three-Way Splitter Windows.
And My Program will update all item in treeview every couple of seconds. When my treeview have many level of items ,it will have a horizonal scroll bar, the view will not flicker.
But if the tree is update to contain fewer items then the scroll bar will disappear, in this case treeview will flicker.

Do you know why treeview will flicker when it hasn't scroll bar?

Fabi Pantera
August 26th, 1999, 01:24 AM
Don't know about horizontal scroll. But use the LockWindow, UnlockWindow functions to lock/unlock the update window. Before you update them contents use the LockWindow for the TreeViewCtrl. After the update use the UnlockWindow. It shold not flicker any more.
Let me know if this helps you.
Best regards,
Faby