Abandon ship and close all forms

Started by BudDurland, May 28, 2009, 03:32:32 PM

Previous topic - Next topic

BudDurland

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!

TechSupport

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.


BudDurland