www.gusucode.com > VC++的窗体TabView标签切换实现-源码程序 > VC++的窗体TabView标签切换实现-源码程序/code/Tab2Doc.cpp

    // Tab2Doc.cpp : implementation of the CTab2Doc class
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "Tab2.h"

#include "Tab2Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTab2Doc

IMPLEMENT_DYNCREATE(CTab2Doc, CDocument)

BEGIN_MESSAGE_MAP(CTab2Doc, CDocument)
	//{{AFX_MSG_MAP(CTab2Doc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CTab2Doc construction/destruction

CTab2Doc::CTab2Doc()
{
	// TODO: add one-time construction code here
    m_Accumulater=0;
}

CTab2Doc::~CTab2Doc()
{
}

BOOL CTab2Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CTab2Doc serialization

void CTab2Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CTab2Doc diagnostics

#ifdef _DEBUG
void CTab2Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CTab2Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CTab2Doc commands