⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e04view.cpp

📁 聊天程序,实现客户端/服务器通信
💻 CPP
字号:
// E04View.cpp : implementation of the CE04View class
//

#include "stdafx.h"
#include "E04.h"

#include "E04Doc.h"
#include "E04View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CE04View

IMPLEMENT_DYNCREATE(CE04View, CEditView)

BEGIN_MESSAGE_MAP(CE04View, CEditView)
	//{{AFX_MSG_MAP(CE04View)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CE04View construction/destruction

CE04View::CE04View()
{
	// TODO: add construction code here

}

CE04View::~CE04View()
{
}

BOOL CE04View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	BOOL bPreCreated = CEditView::PreCreateWindow(cs);
	cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL);	// Enable word-wrapping

	return bPreCreated;
}

/////////////////////////////////////////////////////////////////////////////
// CE04View drawing

void CE04View::OnDraw(CDC* pDC)
{
	CE04Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CE04View diagnostics

#ifdef _DEBUG
void CE04View::AssertValid() const
{
	CEditView::AssertValid();
}

void CE04View::Dump(CDumpContext& dc) const
{
	CEditView::Dump(dc);
}

CE04Doc* CE04View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CE04Doc)));
	return (CE04Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CE04View message handlers

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -