oops, you're right, didn't even remembered that...
Well you can use a check box to that, or you can still use a cmdbutton let's say with left click to show the treeview and right click to hide it.
You could also simulate a dblclick on a cmdbutton using a timer to count the time between to clicks, but that wouldn't be necessary I think. I myself would go with the check box option.