// browseDoc.cpp : implementation of the CbrowseDoc class // #include "stdafx.h" #include "browse.h" #include "browseDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CbrowseDoc IMPLEMENT_DYNCREATE(CbrowseDoc, CDocument) BEGIN_MESSAGE_MAP(CbrowseDoc, CDocument) END_MESSAGE_MAP() // CbrowseDoc construction/destruction CbrowseDoc::CbrowseDoc() { // TODO: add one-time construction code here } CbrowseDoc::~CbrowseDoc() { } BOOL CbrowseDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; reinterpret_cast(m_viewList.GetHead())->SetWindowText(NULL); // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } // CbrowseDoc serialization void CbrowseDoc::Serialize(CArchive& ar) { // CEditView contains an edit control which handles all serialization reinterpret_cast(m_viewList.GetHead())->SerializeRaw(ar); } // CbrowseDoc diagnostics #ifdef _DEBUG void CbrowseDoc::AssertValid() const { CDocument::AssertValid(); } void CbrowseDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG // CbrowseDoc commands