📄 netdoc.cpp
字号:
// netDoc.cpp : CNetDoc 实现文件
//
#include "stdafx.h"
#include "net.h"
#include "ReceiveSocket.h"
#include "netDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CNetDoc
IMPLEMENT_DYNCREATE(CNetDoc, CDocument)
BEGIN_MESSAGE_MAP(CNetDoc, CDocument)
//{{AFX_MSG_MAP(CNetDoc)
// 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()
// CNetDoc 构造/销毁
CNetDoc::CNetDoc()
{
// TODO: 在此添加一次性构造代码
}
CNetDoc::~CNetDoc()
{
}
BOOL CNetDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代码
// (SDI 文档将重用该文档)
return TRUE;
}
// CNetDoc 序列化
void CNetDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: 在此添加存储代码
}
else
{
// TODO: 在此添加加载代码
}
}
// CNetDoc 诊断
#ifdef _DEBUG
void CNetDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CNetDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CNetDoc 命令
//处理获取的消息
BOOL CNetDoc::ReceiveMsg(CReceiveSocket *pSocket)
{
return TRUE;
}
void CNetDoc::DeleteContents()
{
// TODO: 在此添加代码
CDocument::DeleteContents();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -