AfxGetThread

CWinThread* AfxGetThread( );

返回值:指向当前执行的线程的指针。

说明:
调用这个函数以获得代表当前执行的线程的CWinThread对象指针。必须在要求的线程内部调用。

请参阅:AfxBeginThread