MDI operation on remaining child after on child closed?
Posted on 2002-03-22
I have a MDI app. If I have 3 or more child windows open at a time, and a close one off the 3 open windows, I want the remaining windows to automatically retile. A have a custom tile function in my CMainFrame and need to call it to reposition the remaining child windows. If I call this from the child I am closing, I get an ASSERTION because the child the calls reposition, is destroyed. I need to call this reposition AFTER the client is destroyed. I imagine I do this from CMainFrame but can not figure it out. All suggestions welcome and code samples greatly appreciated.