9.2 3.使用 CEvent类实现线程间通信 int CThreadTestview On Create(LPCREATESTRUCT lpCreate Struct) if (CView On Create(pCreate Struct)==-1) return -1 l/ TODO: Add your specialized creation code here HWND hWnd Get SafeHwndo Afx BeginThread(TreadProc, hWnd, THREAD PRIORITY NORMAL) return 03.使用CEvent类实现线程间通信 9.2 int CThreadTestView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; // TODO: Add your specialized creation code here HWND hWnd = GetSafeHwnd(); AfxBeginThread(TreadProc, hWnd, THREAD_PRIORITY_NORMAL); return 0; }