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

  1. // DlgCbar.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /*****************************************************************************
  15.   Purpose:
  16.     Interface for CTheApp.  This class encapsulates the initialization,
  17.     running, and termination of the DLGCBAR application.  There must be
  18.     exactly one object of class CTheApp in the application.  The object
  19.     must be declared at the global level.
  20.  
  21.   Functions:
  22.     CTheApp::CTheApp()          -- constructor
  23.     CTheApp::~CTheApp()         -- destructor
  24.     CTheApp::FirstInstance()    -- locate first instance of app
  25.     CTheApp::InitInstance()     -- initialize app-instance
  26.     CTheApp::OnHelpAbout()      -- display About box
  27.  
  28.   Development Team:
  29.     Mary Kirtland
  30.   Ported to 32-bit by:
  31.     Mike Hedley
  32.   Created by Microsoft Product Support Services, Premier ISV Support
  33.   Copyright (c) 1998 Microsoft Corporation. All rights reserved.
  34. \****************************************************************************/
  35.  
  36. #ifndef __DLGCBAR_H__
  37. #define __DLGCBAR_H__
  38.  
  39. class CTheApp : public CWinApp
  40. {
  41. public:
  42.     CTheApp();
  43.  
  44. // Overrides
  45.     // ClassWizard generated virtual function overrides
  46.     //{{AFX_VIRTUAL(CTheApp)
  47.     public:
  48.     virtual BOOL InitInstance();
  49.     //}}AFX_VIRTUAL
  50.  
  51. // Implementation
  52. public:
  53.     virtual ~CTheApp();
  54.  
  55. protected:
  56.     BOOL FirstInstance();
  57.  
  58.     // Generated message map functions
  59.     //{{AFX_MSG(CTheApp)
  60.     afx_msg void OnHelpAbout();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. #endif //__DLGCBAR_H__
  66.