BCGControlBar Pro for MFC
CView* CBCGPTabView::GetActiveView ( ) const

Returns the active view

Returns
A valid pointer to the active view or NULL.

Call this member function to retrieve a pointer to the active view. It will be NULL if there is no active view.