CWinAppEx::PreSaveState
Visual Studio 2012
The framework calls this method immediately before it saves the application state.
virtual void PreSaveState();
The framework calls this method immediately before it saves the application state.
virtual void PreSaveState();