MDI closing override (urgent)
Posted on 2004-09-06
Hi Experts! I'm on a tight deadline, so thanks for your help in advance!
I have an MDI (frmParent) with about 20 child windows.
When I close frmParent, it closed the children first. The children have Closing events I want to check to see if the parent is closing, and if so, NOT to execute the code in the event.
The problem is I can't create a flag for the children to check because when the parent closes it closed the children first, and then it executes the Closing code in the parent.
I have not really worked with user32.dll overrides, but if someone could show me what code to put in the frmParent that would be absolutley awesome! The goal is to have a flag the children could check before executing the Closing event.