Compartilhar via


CFrameWnd::InitialUpdateFrame

Call IntitialUpdateFrame after creating a new frame with Create.

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

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.

Requirements

Header: afxwin.h

See Also

Reference

CFrameWnd Class

Hierarchy Chart

CView::OnInitialUpdate

CFrameWnd::SetActiveView

CDocTemplate::CreateNewFrame