Home > Software engineering >  Multiple files Vs2010 build framework how to prohibit automatic save the document
Multiple files Vs2010 build framework how to prohibit automatic save the document

Time:10-14

I use VS2010 is established for more than a document procedure, runtime found every once in a while will automatically save the document, the debugging CWinAPP OnIdle call when found, I guess is MFC automatically archive mechanism, but not found in the code of open automatically save Settings, excuse me each expert, how can you help me with my can block the MFC automatic storage of documents? Thank you very much

CodePudding user response:

You can't overload in the App class CWinApp: : OnIdle () function?

CodePudding user response:

There was a line App in the constructor of a class

//support the restart manager
M_dwRestartManagerSupportFlags=AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS;

The role of the line of code is to support the document automatically saved and restored, do not want to use this function to delete this line can,
  • Related