Re: Terminating User-Interface Thread
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Wed, 27 Jul 2005 00:17:11 -0500
delvsb wrote:
Thank you very much for the reply.
When PostQuitMessage(0) is used, the application will exit automatically. I only need something that will stop executing the thread while it is still running without exiting the application..
My project is about searching a string in a list. I used thread so that the user can start and stop searching.
Please help me with this....Thank you very much in advance.
The steps I outlined are for terminating a secondary UI thread from the main thread. If your question is how can the secondary UI thread terminate itself, it should call PostQuitMessage(0). This does not cause the application to exit. If you call it from the secondary thread it causes the secondary thread to exit.
-- Scott McPhillips [VC++ MVP]
.
- References:
- Terminating User-Interface Thread
- From: delvsb
- Re: Terminating User-Interface Thread
- From: Scott McPhillips [MVP]
- Re: Terminating User-Interface Thread
- From: delvsb
- Terminating User-Interface Thread
- Prev by Date: Re: CL.EXE error !
- Next by Date: Re: Where is Executable File
- Previous by thread: Re: Terminating User-Interface Thread
- Next by thread: Re: Terminating User-Interface Thread
- Index(es):
Relevant Pages
|