demoDoc.cpp
资源名称:r-time.zip [点击查看]
上传用户:apnc006
上传日期:2013-01-26
资源大小:178k
文件大小:2k
源码类别:
绘图程序
开发平台:
Visual C++
- // demoDoc.cpp : implementation of the CDemoDoc class
- //
- #include "stdafx.h"
- #include "demo.h"
- #include "demoDoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDemoDoc
- IMPLEMENT_DYNCREATE(CDemoDoc, CDocument)
- BEGIN_MESSAGE_MAP(CDemoDoc, CDocument)
- //{{AFX_MSG_MAP(CDemoDoc)
- // 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()
- /////////////////////////////////////////////////////////////////////////////
- // CDemoDoc construction/destruction
- CDemoDoc::CDemoDoc()
- {
- // TODO: add one-time construction code here
- }
- CDemoDoc::~CDemoDoc()
- {
- }
- BOOL CDemoDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CDemoDoc serialization
- void CDemoDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CDemoDoc diagnostics
- #ifdef _DEBUG
- void CDemoDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CDemoDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CDemoDoc commands