PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: BudDurland on May 28, 2009, 03:32:32 PM

Title: Abandon ship and close all forms
Post by: BudDurland on May 28, 2009, 03:32:32 PM
Is there a standard way to do that?  The program that we use daily here is such that occasionally, I might have to simply end it without knowing what forms the user has open.  Is there a generic FF_CLOSEFORM(*) function?    If not, is there harm in calling FF_CLOSEFORM for a form that is not open?  If that's allowed, I can simply put one for each form in the event handler.

Thanks!
Title: Re: Abandon ship and close all forms
Post by: TechSupport on May 28, 2009, 03:49:41 PM
Closing the Main form of your application will end the program properly and also close any child forms belonging to the program. You shouldn't have to explicitly close every single form. You can do "clean up" for each form in the WM_DESTROY message handler for each form as they close if needed.

Title: Re: Abandon ship and close all forms
Post by: BudDurland on May 29, 2009, 12:08:40 AM
Well, that makes it easy!

Thanks!