Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::OnClose
◄CWnd►                                        ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg void OnClose();
 
  Remarks
 
  Called as a signal that the CWnd or an application is to terminate. An
  application can prompt the user for confirmation and destroy the CWnd
  object by calling the ◄DestroyWindow► member function only if the user
  confirms the choice.
 
  This message-handler member function calls the ◄Default► member
  function. Override this member function in your derived class to handle
  the ◄WM_CLOSE► message.
 
  See Also
 
  ◄CWnd::DestroyWindow►, ◄::PostQuitMessage►, ◄WM_CLOSE►, ◄CWnd::Default►
 
 
                                     -♦-