Article # 484, added by Geoworks, historical record
| first | previous | index | next | last |

Causing an application to quit.



Q. What is the proper way to shut down an application? Is there a
   message that will shut down the application regardless of what UI
   objects are active (such as a modal dialog up)?

A. Send MSG_META_DETACH to the application object. For the callerID
   parameter, pass zero. (callerID is useful if you are writing
   your own handlers for MSG_META_DETACH and want some way to ID the
   object that sent the message.)

   Another option: You can send MSG_META_QUIT to the application object.
   This will cause your application to completely shut down. It will
   not save a state file.