This documentation is archived and is not being maintained.


Called by the framework after the view is first attached to the document, but before the view is initially displayed.

virtual void OnInitialUpdate( );


The default implementation of this function calls the CView::OnUpdate member function with no hint information (that is, using the default values of 0 for the lHint parameter and NULL for the pHint parameter). Override this function to perform any one-time initialization that requires information about the document. For example, if your application has fixed-sized documents, you can use this function to initialize a view's scrolling limits based on the document size. If your application supports variable-sized documents, use OnUpdate to update the scrolling limits every time the document changes.


See the example for CRichEditView::m_nWordWrap.

See Also

CRichEditView Overview | Class Members | Hierarchy Chart | CView::OnUpdate