This documentation is archived and is not being maintained.


Call IntitialUpdateFrame after creating a new frame with Create.

void InitialUpdateFrame(
   CDocument* pDoc,
   BOOL bMakeVisible 


Points to the document to which the frame window is associated. Can be NULL.
If TRUE, indicates that the frame should become visible and active. If FALSE, no descendants are made visible.


This causes all views in that frame window to receive their OnInitialUpdate calls.

Also, if there was not previously an active view, the primary view of the frame window is made active. The primary view is a view with a child ID of AFX_IDW_PANE_FIRST. Finally, the frame window is made visible if bMakeVisible is nonzero. If bMakeVisible is 0, the current focus and visible state of the frame window will remain unchanged. It is not necessary to call this function when using the framework's implementation of File New and File Open.

See Also

CFrameWnd Overview | Class Members | Hierarchy Chart | CView::OnInitialUpdate | CFrameWnd::SetActiveView | CDocTemplate::CreateNewFrame