ROADoc.cpp
资源名称:ROA3.40.rar [点击查看]
上传用户:tianheyiqi
上传日期:2010-04-16
资源大小:282k
文件大小:2k
源码类别:
外挂编程
开发平台:
Visual C++
- // ROADoc.cpp : implementation of the CROADoc class
- //
- #include "stdafx.h"
- #include "ROA.h"
- #include "ROADoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CROADoc
- IMPLEMENT_DYNCREATE(CROADoc, CDocument)
- BEGIN_MESSAGE_MAP(CROADoc, CDocument)
- //{{AFX_MSG_MAP(CROADoc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CROADoc construction/destruction
- CROADoc::CROADoc()
- {
- // TODO: add one-time construction code here
- }
- CROADoc::~CROADoc()
- {
- }
- BOOL CROADoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- ((CEditView*)m_viewList.GetHead())->SetWindowText(NULL);
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CROADoc serialization
- void CROADoc::Serialize(CArchive& ar)
- {
- // CEditView contains an edit control which handles all serialization
- ((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CROADoc diagnostics
- #ifdef _DEBUG
- void CROADoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CROADoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CROADoc commands