www.gusucode.com > VC++动态刷新数据库和多表切换示例-源码程序 > VC++动态刷新数据库和多表切换示例-源码程序/code/mytest/mytestDoc.cpp
//Download by http://www.NewXing.com // mytestDoc.cpp : implementation of the CMytestDoc class // #include "stdafx.h" #include "mytest.h" #include "mytestSet.h" #include "mytestDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMytestDoc IMPLEMENT_DYNCREATE(CMytestDoc, CDocument) BEGIN_MESSAGE_MAP(CMytestDoc, CDocument) //{{AFX_MSG_MAP(CMytestDoc) // 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() ///////////////////////////////////////////////////////////////////////////// // CMytestDoc construction/destruction CMytestDoc::CMytestDoc() { // TODO: add one-time construction code here } CMytestDoc::~CMytestDoc() { } BOOL CMytestDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CMytestDoc diagnostics #ifdef _DEBUG void CMytestDoc::AssertValid() const { CDocument::AssertValid(); } void CMytestDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMytestDoc commands