CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Posts
    9

    Closing the MainWindo

    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



  2. #2
    Join Date
    Jun 1999
    Posts
    126

    Re: Closing the MainWindo

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured