AfxBeginThread
代码
CWinThread *pFindCardWorker=AfxBeginThread(DAssistantProc,NULL);
UINT DAssistantProc(LPVOID pParam)
{
//......
}
//暂停线程
pFindCardWorker->SuspendThread();
//继续线程
pFindCardWorker->ResumeThread();
UINT DAssistantProc(LPVOID pParam)
{
//......
}
//暂停线程
pFindCardWorker->SuspendThread();
//继续线程
pFindCardWorker->ResumeThread();