?? examplethread.cpp
字號:
// ExampleThread.cpp : implementation file
//
#include "stdafx.h"
#include "UIThread.h"
#include "ExampleThread.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CExampleThread
IMPLEMENT_DYNCREATE(CExampleThread, CWinThread)
CExampleThread::CExampleThread()
{
m_bDone=FALSE;//初始化允許線程運行
m_pOwner=NULL;//將該指針置為空
m_bAutoDelete=FALSE;//要求手動刪除線程對象
}
CExampleThread::~CExampleThread()
{
}
BOOL CExampleThread::InitInstance()
{
// TODO: perform and per-thread initialization here
return TRUE;
}
int CExampleThread::ExitInstance()
{
// TODO: perform any per-thread cleanup here
return CWinThread::ExitInstance();
}
BEGIN_MESSAGE_MAP(CExampleThread, CWinThread)
//{{AFX_MSG_MAP(CExampleThread)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CExampleThread message handlers
void CExampleThread::SetOwner(CUIThreadDlg *pOwner)
{
m_pOwner=pOwner;
//取類CMutexesDlg的指針
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -