The function causes a tree control to expand all items in the tree. When the context does not refer to a tree control or tree combo box, the function throws an exception.