home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / listhdr / listhdr.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.6 KB  |  62 lines

  1. // ListHdr.cpp : Defines the class behaviors for the application.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "ListHdr.h"
  15. #include "LHdrDlg.h"
  16.  
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CListHdrApp
  25.  
  26. BEGIN_MESSAGE_MAP(CListHdrApp, CWinApp)
  27.     //{{AFX_MSG_MAP(CListHdrApp)
  28.     //}}AFX_MSG
  29.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  30. END_MESSAGE_MAP()
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CListHdrApp construction
  34.  
  35. CListHdrApp::CListHdrApp()
  36. {
  37. }
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // The one and only CListHdrApp object
  41.  
  42. CListHdrApp theApp;
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CListHdrApp initialization
  46.  
  47. BOOL CListHdrApp::InitInstance()
  48. {
  49.     AfxEnableControlContainer();
  50.  
  51.     // Standard initialization
  52.     CListHdrDlg dlg;
  53.     m_pMainWnd = &dlg;
  54.  
  55.     // Bring up modal dialog
  56.     dlg.DoModal();
  57.  
  58.     // Since the dialog has been closed, return FALSE so that we exit the
  59.     //  application, rather than start the application's message pump.
  60.     return FALSE;
  61. }
  62.