98 lines
1.8 KiB
C++
98 lines
1.8 KiB
C++
|
// CorpSmsDoc.cpp : implementation of the CCorpSmsDoc class
|
||
|
//
|
||
|
|
||
|
#include "stdafx.h"
|
||
|
#include "CorpSms.h"
|
||
|
|
||
|
#include "CorpSmsDoc.h"
|
||
|
|
||
|
#ifdef _DEBUG
|
||
|
#define new DEBUG_NEW
|
||
|
#undef THIS_FILE
|
||
|
static char THIS_FILE[] = __FILE__;
|
||
|
#endif
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CCorpSmsDoc
|
||
|
|
||
|
IMPLEMENT_DYNCREATE(CCorpSmsDoc, CDocument)
|
||
|
|
||
|
BEGIN_MESSAGE_MAP(CCorpSmsDoc, CDocument)
|
||
|
//{{AFX_MSG_MAP(CCorpSmsDoc)
|
||
|
// 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()
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CCorpSmsDoc construction/destruction
|
||
|
|
||
|
CCorpSmsDoc::CCorpSmsDoc()
|
||
|
{
|
||
|
// TODO: add one-time construction code here
|
||
|
|
||
|
}
|
||
|
|
||
|
CCorpSmsDoc::~CCorpSmsDoc()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
BOOL CCorpSmsDoc::OnNewDocument()
|
||
|
{
|
||
|
if (!CDocument::OnNewDocument())
|
||
|
return FALSE;
|
||
|
|
||
|
// TODO: add reinitialization code here
|
||
|
// (SDI documents will reuse this document)
|
||
|
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CCorpSmsDoc serialization
|
||
|
|
||
|
void CCorpSmsDoc::Serialize(CArchive& ar)
|
||
|
{
|
||
|
if (ar.IsStoring())
|
||
|
{
|
||
|
// TODO: add storing code here
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
// TODO: add loading code here
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CCorpSmsDoc diagnostics
|
||
|
|
||
|
#ifdef _DEBUG
|
||
|
void CCorpSmsDoc::AssertValid() const
|
||
|
{
|
||
|
CDocument::AssertValid();
|
||
|
}
|
||
|
|
||
|
void CCorpSmsDoc::Dump(CDumpContext& dc) const
|
||
|
{
|
||
|
CDocument::Dump(dc);
|
||
|
}
|
||
|
#endif //_DEBUG
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CCorpSmsDoc commands
|
||
|
|
||
|
BOOL CCorpSmsDoc::OnOpenDocument(LPCTSTR lpszPathName)
|
||
|
{
|
||
|
return true;
|
||
|
/*
|
||
|
if (!CDocument::OnOpenDocument(lpszPathName))
|
||
|
return FALSE;
|
||
|
|
||
|
// TODO: Add your specialized creation code here
|
||
|
|
||
|
return TRUE;
|
||
|
*/
|
||
|
}
|