1.UI线程 2.工作线程 把Delphi里TThread的WaitFor函数转化成C++代码,就会是下面这个样子. BOOL TThread::WaitFor(HANDLE hThread) { MSG msg; HANDLE handle[1]; handle[0] = hThread; DWORD dwWaitResult = 0; do { // This prevents a potential deadlock if the background thread // does a S…