CFrameWnd::SetActiveView

Call this member function to set the active view.

void SetActiveView(
   CView* pViewNew,
   BOOL bNotify = TRUE 
);

Parameters

  • pViewNew
    Specifies a pointer to a CView object, or NULL for no active view.

  • bNotify
    Specifies whether the view is to be notified of activation. If TRUE, OnActivateView is called for the new view; if FALSE, it is not.

Remarks

The framework will call this function automatically as the user changes the focus to a view within the frame window. You can explicitly call SetActiveView to change the focus to the specified view.

Requirements

Header: afxwin.h

See Also

Concepts

CFrameWnd Class

CFrameWnd Members

Hierarchy Chart

CFrameWnd::GetActiveView

CView::OnActivateView

CFrameWnd::GetActiveDocument