QQServerDoc.cpp
上传用户:hysujiao87
上传日期:2007-12-02
资源大小:156k
文件大小:2k
- // QQServerDoc.cpp : implementation of the CQQServerDoc class
- //
- #include "stdafx.h"
- #include "QQServer.h"
- #include "QQServerDoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CQQServerDoc
- IMPLEMENT_DYNCREATE(CQQServerDoc, CDocument)
- BEGIN_MESSAGE_MAP(CQQServerDoc, CDocument)
- //{{AFX_MSG_MAP(CQQServerDoc)
- // 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()
- /////////////////////////////////////////////////////////////////////////////
- // CQQServerDoc construction/destruction
- CQQServerDoc::CQQServerDoc()
- {
- // TODO: add one-time construction code here
- }
- CQQServerDoc::~CQQServerDoc()
- {
- }
- BOOL CQQServerDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CQQServerDoc serialization
- void CQQServerDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- _userList.Serialize(ar);// TODO: add storing code here
- }
- else
- {
- _userList.Serialize(ar);// TODO: add loading code here
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CQQServerDoc diagnostics
- #ifdef _DEBUG
- void CQQServerDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CQQServerDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CQQServerDoc commands
- void CQQServerDoc::DeleteContents()
- {
- _userList.removeAll();
- }