home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Extras / Sensaura / SDK1.0 / data1.cab / Example_Files / ZoomFX / applicat.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-13  |  1.5 KB  |  57 lines

  1. /*
  2.     Company:            Sensaura Ltd
  3.     Copyright:          (C) 2000
  4.  
  5.     File Name:            applicat.h
  6.     File Description:    Header file for definition of Application class
  7.     Author:                Adam Philp
  8.     Last Update:        04-JAN-00
  9.  
  10.     Target Compiler:    Microsoft Visual C++ Version 5.0
  11. */
  12.  
  13. #ifndef __applicat_h                    // Sentry, use file only if it's not already included                    
  14. #define __applicat_h
  15.  
  16. ///////////////////////    Included files ////////////////////////////////////////////////////////////
  17.  
  18. #include "mainwnd.h"
  19.  
  20. ///////////////////////    Class declarations ////////////////////////////////////////////////////////
  21.  
  22. /*
  23.     Class:                Application
  24.     Description:        Generic windows application class
  25. */
  26.  
  27. class Application 
  28. {
  29. public:                                    // Public constructor and destructor
  30.     Application(LPCSTR, HINSTANCE, HINSTANCE, LPSTR, int);
  31.     virtual ~Application();
  32.  
  33. public:                                    // Public member functions
  34.     int                Run();
  35.     HINSTANCE        GetInstance() const { return m_hInstance; }
  36.     LPCSTR            GetName() const { return m_pName; }
  37.     MainWnd*        GetMainWindow() const { return m_pMainWindow; }
  38.  
  39. protected:                                // Protected member functions
  40.     virtual bool    InitApplication();
  41.     virtual bool    InitInstance();
  42.     virtual int        MessageLoop();
  43.     virtual bool    PreProcessMsg(MSG&);
  44.  
  45. protected:                                // Protected data members
  46.     HINSTANCE        m_hInstance;
  47.     HINSTANCE        m_hPrevInstance;
  48.     LPCSTR            m_pName;
  49.     MainWnd*        m_pMainWindow;
  50.     HACCEL            m_hAccelTable;
  51.  
  52. private:                                // Private data members
  53.     int                m_nCmdShow;
  54. };
  55.  
  56. #endif                                    // End of sentry __applicat_h
  57.