CView* pView = GetActiveView(); if (pView->IsKindOf(RUNTIME_CLASS(CMyView))) { // Do something specific to CMyView }This code example shows how to determine whether an active view in an MFC application is of type CMyView. If it is, a specific action can be taken. Package Library: MFC (Microsoft Foundation Classes)