-
CDocument
OnNewDocument
<= CWinApp::OnFileNew
.DeleteContents()
OnSaveDocument
<= CWinApp::OnFileSave, CWinApp::OnFileSaveAs
.Serialize()
CFile 오브젝트와 연결된 CArchive 오브젝트OnOpenDocument
<= CWinApp::OnFileOpen
.DeleteContents()
.Serialize()
OnCloseDocument
.DeleteContents()
on DeleteContents()
할당한 리소스 해제
.UpdateAllViews() // 도큐먼트에 연결된 뷰에 WM_PAINT를 전달
.SetModifiedFlag()
.GetFirstViewPosition()
.GetNextView()
.SetTitle()
.Serialize() // virtual
protected:
m_viewList
참조 사이트: