Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWinApp::RestartInstance
Collapse the table of content
Expand the table of content

CWinApp::RestartInstance

Handles an application restart initiated by the restart manager.

virtual BOOL CWinApp::RestartInstance();

TRUE if the data recovery handler opens previously open documents; FALSE if the data recovery handler has an error or if there are no previously open documents.

When the restart manager restarts an application, the framework calls this method. This method retrieves the data recovery handler and restores the autosaved files. This method calls CDataRecoveryHandler::RestoreAutosavedDocuments to determine whether the user wants to restore the autosaved files.

This method returns FALSE if the CDataRecoveryHandler determines that there were no open documents. If there were no open documents, the application starts ordinarily.

Header: afxwin.h

Show:
© 2015 Microsoft