📄 rundlgthread.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -