CaptionDemoDoc.cpp
上传用户:zhoushen
上传日期:2022-06-15
资源大小:84k
文件大小:2k
- // CaptionDemoDoc.cpp : implementation of the CCaptionDemoDoc class
- //
- #include "stdafx.h"
- #include "CaptionDemo.h"
- #include "CaptionDemoDoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCaptionDemoDoc
- IMPLEMENT_DYNCREATE(CCaptionDemoDoc, CDocument)
- BEGIN_MESSAGE_MAP(CCaptionDemoDoc, CDocument)
- //{{AFX_MSG_MAP(CCaptionDemoDoc)
- // 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()
- /////////////////////////////////////////////////////////////////////////////
- // CCaptionDemoDoc construction/destruction
- CCaptionDemoDoc::CCaptionDemoDoc()
- {
- // TODO: add one-time construction code here
- }
- CCaptionDemoDoc::~CCaptionDemoDoc()
- {
- }
- BOOL CCaptionDemoDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCaptionDemoDoc serialization
- void CCaptionDemoDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCaptionDemoDoc diagnostics
- #ifdef _DEBUG
- void CCaptionDemoDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CCaptionDemoDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CCaptionDemoDoc commands