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