Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Call this member function to set the active view.

void SetActiveView( 
   CView* pViewNew, 
   BOOL bNotify = TRUE  


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


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

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.

Header: afxwin.h

Community Additions

© 2015 Microsoft