FILE: NOCLOSE.ZIP FILE SIZE: 1,073 bytes FILE DATE: August 12th, 1998 UPLOADED BY: Tom Foley tomfoley@usa.net AUTHOR: Tom Foley TYPE: Freeware VERSION: 1.0 DESCRIPTION: 32bit API Demo program - disables Close and 'X' from the System Menu COMMENTS: A CW developer may find themselves developing an application who's integrity is crucial, and therefore must prevent the user from accidentally terminating the application during its life, while still displaying the system menu. And while CW allows you to CYCLE the event in Code - such a sensitive application may need to totally prevent even activation of the shutdown. Although it is not possible to simply disable the Close button while the Close system menu option is present, just a few lines of API code will remove the system menu Close option and in doing so permanently disable the titlebar close button. This code was translated from some sample VB code, I don't know the author but all credit is really his/her's!