Getting rid of 'Save changes to Untitled?'
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 11 of 11

Thread: Getting rid of 'Save changes to Untitled?'

Threaded View

  1. #1
    Join Date
    May 2002

    Getting rid of 'Save changes to Untitled?'

    I have tried everything I can think of to get rid of the 'Save changes to Untitled?' message box that appears every time my SDI split app tries to load a new file. The problem is that the message appears inappropriately, both when no previous document has been loaded or should exist, and even after File / New has been envoked. I have attached a small demo program to demo the problem. Inspecting the SpVwTrDoc.cpp NewDocument and OnOpenDocument, and elsewhere, you will see that using SetModifiedFlag(FALSE); has no effect. The web is full of posts on this problem but nowhere can I find a solution. While the app still works, the message is annoying and for a client distributed app, it lends a distinct air of amateurism to the whole program. Any help greatly appreciated. Thanks.
    Attached Files Attached Files

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center