Поделиться через


CWinApp::m_dwRestartManagerSupportFlags

Flags that determine how the restart manager behaves.

DWORD m_dwRestartManagerSupportFlags;

Remarks

To enable the restart manager, set m_dwRestartManagerSupportFlags to the behavior that you want. The following table shows the flags that are available.

Flag

Description

AFX_RESTART_MANAGER_SUPPORT_RESTART

The application is registered by using CWinApp::RegisterWithRestartManager. The restart manager is responsible for restarting the application if it unexpectedly exits.

  • AFX_RESTART_MANAGER_SUPPORT_RECOVERY

The application is registered with the restart manager and the restart manager calls the recovery callback function when it restarts the application. The default recovery callback function is CWinApp::ApplicationRecoveryCallback.

  • AFX_RESTART_MANAGER_AUTOSAVE_AT_RESTART

Autosave is enabled and the restart manager autosaves any open documents when the application restarts.

  • AFX_RESTART_MANAGER_AUTOSAVE_AT_INTERVAL

Autosave is enabled and the restart manager autosaves any open documents at a regular interval. The interval is defined by CWinApp::m_nAutosaveInterval.

  • AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES

The restart manager opens previously open documents after restarting the application from an unexpected exit. The CDataRecoveryHandler Class handles storing the list of open documents and restoring them.

  • AFX_RESTART_MANAGER_RESTORE_AUTOSAVED_FILES

The restart manager prompts the user to restore autosaved files after restarting the application. The CDataRecoveryHandler class queries the user.

  • AFX_RESTART_MANAGER_SUPPORT_NO_AUTOSAVE

The union of AFX_RESTART_MANAGER_SUPPORT_RESTART, AFX_RESTART_MANAGER_SUPPORT_RECOVER, and AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES.

  • AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS

The union of AFX_RESTART_MANAGER_SUPPORT_NO_AUTOSAVE, AFX_RESTART_MANAGER_AUTOSAVE_AT_RESTART, AFX_RESTART_MANAGER_AUTOSAVE_AT_INTERVAL, and AFX_RESTART_MANAGER_RESTORE_AUTOSAVED_FILES.

  • AFX_RESTART_MANAGER_SUPPORT_RESTART_ASPECTS

The union of AFX_RESTART_MANAGER_SUPPORT_RESTART, AFX_RESTART_MANAGER_AUTOSAVE_AT_RESTART, AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES, and AFX_RESTART_MANAGER_RESTORE_AUTOSAVED_FILES.

  • AFX_RESTART_MANAGER_SUPPORT_RECOVERY_ASPECTS

The union of AFX_RESTART_MANAGER_SUPPORT_RECOVERY, AFX_RESTART_MANAGER_AUTOSAVE_AT_INTERVAL, AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES, and AFX_RESTART_MANAGER_RESTORE_AUTOSAVED_FILES.

Requirements

Header: afxwin.h

See Also

Tasks

How to: Add Restart Manager Support

Reference

CWinApp Class

Hierarchy Chart