BCGControlBar Pro for MFC
int CBCGPTabView::FindTab ( HWND  hWndView) const

Given a handle to a view returns the view's index in the tab control.

The index of a view if successful, otherwise -1.

Call this function to retrieve the index of a view by providing a handle to the view.

hWndViewA handle to a view's window.