root/PochyDoc.cpp
/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following definitions.
- IMPLEMENT_DYNCREATE
- CPochyDoc
- OnNewDocument
- Serialize
- AssertValid
- Dump
/*
* Copyright (C) 2002-2003 chik, s.hiranaka
* For license terms, see the file COPYING in this directory.
*/
// PochyDoc.cpp : CPochyDoc クラスの動作の定義を行います。
//
#include "stdafx.h"
#include "Pochy.h"
#include "PochyDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPochyDoc
IMPLEMENT_DYNCREATE(CPochyDoc, CDocument)
BEGIN_MESSAGE_MAP(CPochyDoc, CDocument)
//{{AFX_MSG_MAP(CPochyDoc)
// メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します。
// この位置に生成されるコードを編集しないでください。
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPochyDoc クラスの構築/消滅
CPochyDoc::CPochyDoc()
{
// TODO: この位置に1度だけ呼ばれる構築用のコードを追加してください。
}
CPochyDoc::~CPochyDoc()
{
}
BOOL CPochyDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
((CEditView*)m_viewList.GetHead())->SetWindowText(NULL);
// TODO: この位置に再初期化処理を追加してください。
// (SDI ドキュメントはこのドキュメントを再利用します。)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CPochyDoc シリアライゼーション
void CPochyDoc::Serialize(CArchive& ar)
{
// CEditView はすべてのシリアライゼーション ハンドルのどれかのエディットコントロールを含んでいます。
((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
}
/////////////////////////////////////////////////////////////////////////////
// CPochyDoc クラスの診断
#ifdef _DEBUG
void CPochyDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CPochyDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CPochyDoc コマンド