rundlgthread.cpp

来自「此程序用到了,ADO连接ACCESS数据库,切分窗口,以及不同视图之间进行通信.」· C++ 代码 · 共 62 行

CPP
62
字号
// RunDlgThread.cpp : implementation file
//

#include "stdafx.h"
#include "ChooseBookTool.h"
#include "RunDlgThread.h"

#include "WaitDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRunDlgThread

IMPLEMENT_DYNCREATE(CRunDlgThread, CWinThread)

CRunDlgThread::CRunDlgThread(void* hParent)
:m_pParentDlg(hParent)
{
}
CRunDlgThread::CRunDlgThread()
{
}

CRunDlgThread::~CRunDlgThread()
{
}

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CRunDlgThread message handlers

int CRunDlgThread::Run() 
{
	// TODO: Add your specialized code here and/or call the base class
	CWaitDlg* pDlg;
	pDlg = (CWaitDlg*)m_pParentDlg;
	pDlg->BeginProgress();
	return CWinThread::Run();
}

⌨️ 快捷键说明

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