I have created a SDI class in my Visual C++ Studio 5.0. Under the View class, I have begun a worker thread called worker() by using AfxBeginThread(). Also, I have passed the pointer to the View class for the worker thread to pass the messages to controller thread. However, if I would like to kill the worker thread at any time, I do not know how to pass a message or control to kill worker(). EndThread() can only be executed in worker(), not outside the worker(). Besides, the worker() is only a function, not a class object. It does not have its own message handle. Anyway, is there any method for me to kill worker() once user click CANCEL button on CView's menu? Thanks.