CWnd::OnClose
Visual Studio 2010
The framework calls this member function as a signal that the CWnd or an application is to terminate.
afx_msg void OnClose( );
The framework calls this member function as a signal that the CWnd or an application is to terminate.
afx_msg void OnClose( );