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

  1. /*
  2.     Company:            Sensaura
  3.     Copyright:          (C) 1998
  4.  
  5.     File Name:            dxwindow.h
  6.     File Description:    Header file for definition of DirectXWindow class
  7.     Author:                Adam Philp
  8.     Version:            1.02.000
  9.     Last Update:        14-JAN-99
  10.  
  11.     Target Compiler:    Microsoft Visual C++ Version 5.0
  12. */
  13.  
  14. #ifndef __dxwindow_h                    // Sentry, use file only if it's not already included
  15. #define __dxwindow_h
  16.  
  17. ///////////////////////    Included files ////////////////////////////////////////////////////////////
  18.  
  19. #include "window.h"
  20. #include "dxworld.h"
  21.  
  22. ///////////////////////    Class declarations ////////////////////////////////////////////////////////
  23.  
  24. /*
  25.     Class:                DirectXWindow
  26.     Description:        Class combining standard Window support for our DirectXWorld class
  27. */
  28.  
  29. class DirectXWindow : public Window, private DirectXWorld
  30. {
  31. public:                                    // Public constructor & destructor
  32.     DirectXWindow(Window*, LPCSTR, Application*);
  33.     virtual ~DirectXWindow();
  34.  
  35. public:                                    // Public member functions
  36.     virtual bool    Create();
  37.     virtual LPSTR    GetClassName() const;
  38.     virtual void    GetWindowClass(WNDCLASS&) const;
  39.  
  40.     virtual LRESULT EvCommand(UINT, HWND, UINT);
  41.     virtual bool    IdleAction(long);
  42.  
  43. protected:                                // Protected member functions
  44.     virtual LRESULT WindowProc(UINT, WPARAM, LPARAM);
  45.     virtual void    EvActivate(WORD, bool, HWND);
  46.     virtual void    EvPaint();
  47.     virtual void    EvSize(UINT, int, int);
  48.  
  49. private:                                // Private member functions
  50.     void EnableMainMenuItem(UINT, bool);
  51.     void CheckMainMenuItem(UINT, bool);
  52.     void UpdateMainMenu();
  53. };
  54.  
  55. #endif                                    // End of sentry __dxwindow_h
  56.