thread.cpp

来自「msdn提供的文档视结构的例子」· C++ 代码 · 共 54 行

CPP
54
字号
// thread.cpp : implementation file
//

#include "stdafx.h"
#include "mdi.h"
#include "thread.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cthread

IMPLEMENT_DYNCREATE(Cthread, CWinThread)

Cthread::Cthread()
{
}

Cthread::~Cthread()
{
}

BOOL Cthread::InitInstance()
{
	// TODO:  perform and per-thread initialization here
	return TRUE;
}

int Cthread::ExitInstance()
{
	// TODO:  perform any per-thread cleanup here
	return CWinThread::ExitInstance();
}

BEGIN_MESSAGE_MAP(Cthread, CWinThread)
	//{{AFX_MSG_MAP(Cthread)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cthread message handlers

BOOL Cthread::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	return CWinThread::PreTranslateMessage(pMsg);
}

⌨️ 快捷键说明

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