Given a handle to a view returns the view's index in the tab control.
Call this function to retrieve the index of a view by providing a handle to the view.