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.
CWinApp::m_pMainWnd
CWinApp                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Remarks
 
  Use this data member to store a pointer to your application's main
  window object. The Foundation class library will automatically terminate
  your application when the window referred to by m_pMainWnd is closed. If
  you don't store a valid CWnd pointer here, you must explicitly call the
  Windows function PostQuitMessage to terminate your application.
 
 
                                     -♦-