Click to See Complete Forum and Search --> : Closing the MainWindo


Umar
July 12th, 1999, 11:49 PM
Hi All,

Whenever I press the MainWindow Close button without closing its subsequent child windows,the child windows should be closed with 'Save yes/No' confirmation......
How can I achieve this.....Could u pls help me....
Thanks In Advance.......

Best Regs
umar

Timo Hahn
July 13th, 1999, 12:36 AM
In your message handler for the main window close call

if (!SaveAllModified())
return;

CloseAllDocuments(FALSE);



Whenever you modify your document set the modified flag to TRUE. The framework then calls your document SaveModyfied() method.

Timo