www.gusucode.com > 一个VC++ GUI测试程序-源码程序 > 一个VC++ GUI测试程序-源码程序/code/GUITestDoc.cpp
//Download by http://www.NewXing.com // GUITestDoc.cpp : implementation of the CGUITestDoc class // #include "stdafx.h" #include "GUITest.h" #include "GUITestDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CGUITestDoc IMPLEMENT_DYNCREATE(CGUITestDoc, CDocument) BEGIN_MESSAGE_MAP(CGUITestDoc, CDocument) //{{AFX_MSG_MAP(CGUITestDoc) // 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() ///////////////////////////////////////////////////////////////////////////// // CGUITestDoc construction/destruction CGUITestDoc::CGUITestDoc() { // TODO: add one-time construction code here } CGUITestDoc::~CGUITestDoc() { } BOOL CGUITestDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CGUITestDoc serialization void CGUITestDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CGUITestDoc diagnostics #ifdef _DEBUG void CGUITestDoc::AssertValid() const { CDocument::AssertValid(); } void CGUITestDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CGUITestDoc commands