Share via


CFrameWnd::InitialUpdateFrame

void InitialUpdateFrame( CDocument* pDoc**, BOOL** bMakeVisible );

Parameters

pDoc

Points to the document to which the frame window is associated. Can be NULL.

bMakeVisible

If TRUE, indicates that the frame should become visible and active. If FALSE, no descendants are made visible.

Remarks

Call IntitialUpdateFrame after creating a new frame with Create. 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.

CFrameWnd OverviewClass MembersHierarchy Chart

See Also   CView::OnInitialUpdate, CFrameWnd::SetActiveView, CDocTemplate::CreateNewFrame