Hi Pablo,
My Obj2Bmp utility, locks a treeview using the LockWindowUpdate() in Win32. You might want to take a look at that to see how I do that. The treeview (which is sub-classed) has a custom property which holds its window handle. The Refresh button has the declaration and code.
George
Ubi caritas et amor, deus ibi est