showobjectthread.cpp

来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C++ 代码 · 共 50 行

CPP
50
字号
// ShowObjectThread.cpp : implementation file
//

#include "stdafx.h"
#include "Ex090202.h"
#include "ShowObjectThread.h"
#include "ShowObjectFrm.h"

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

/////////////////////////////////////////////////////////////////////////////
// CShowObjectThread

IMPLEMENT_DYNCREATE(CShowObjectThread, CWinThread)

CShowObjectThread::CShowObjectThread()
{
	m_hParent = NULL ;
	m_rRect.SetRect(0,0,0,0);
}

CShowObjectThread::~CShowObjectThread()
{
}

BOOL CShowObjectThread::InitInstance()
{
	m_pMainWnd = new CShowObjectFrm(CWnd::FromHandle(m_hParent),m_rRect);
	return TRUE;
}

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

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

/////////////////////////////////////////////////////////////////////////////
// CShowObjectThread message handlers

⌨️ 快捷键说明

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