>IF node <> This.OldSelectedItem > DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER hWnd > = LockWindowUpdate(This.hWnd) > This.SelectedItem = This.OldSelectedItem > = LockWindowUpdate(0) >ENDIF >>When I click on another node, it's moving me back to the old node, but it's not locking the screen while the highlight moves to the new node and then back to the old node again.
Declare Long SendMessage in User32 ; Long hWndTreeView, Integer uMsg, Long wParam, Long lParam hItem = SendMessage( ThisForm.Tree1.hWnd, 4362, 5, 0 ) hItem = SendMessage( ThisForm.Tree1.hWnd, 4362, 7, hItem ) SendMessage( ThisForm.Tree1.hWnd, 4372, 0, hItem )Look here for more info about treeview controls & messages: