Re: Terminating a program
brian sharon <[email protected]> Sat, 30 Jul 2005 11:25:27 -0700
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
On 7/30/05, [email protected] <[email protected]> wrote: > > Is there a way of delivering WM_CLOSE so that the dialog box does not > appear even if the application does not respond? With this I would > probably solve 95% of my current problem cases. (And could concentrate > my debugging effort to the remaining 5%) Sounds like you might be better off not using WM_CLOSE, since the OS is going to complain if you ignore it for too long. But you have plenty of other options if you want to handle communications between two apps you control. Easiest thing is to use RegisterWindowMessage() to get a unique message value for your own custom quit message, and then the child application could post WM_CLOSE to itself whenever it receives that custom quit message from the launcher app. --brian