Share via


CDocTemplate::InitialUpdateFrame

Initializes the frame window, and optionally makes it visible.

virtual void InitialUpdateFrame( 
   CFrameWnd* pFrame, 
   CDocument* pDoc, 
   BOOL bMakeVisible = TRUE  
);

Parameters

  • pFrame
    The frame window that needs the initial update.

  • pDoc
    The document to which the frame is associated. Can be NULL.

  • bMakeVisible
    Indicates whether the frame should become visible and active.

Remarks

Call IntitialUpdateFrame after creating a new frame with CreateNewFrame. Calling this function causes the 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 non-zero. If bMakeVisible is zero, 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

CDocTemplate Class

Hierarchy Chart

CView::OnInitialUpdate

CFrameWnd::SetActiveView

CDocTemplate::CreateNewFrame