Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.