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

  1. /*
  2.     Company:            Sensaura Ltd
  3.     Copyright:          (C) 1999
  4.  
  5.     File Name:            lstnrdlg.h
  6.     File Description:    Header file for declaration of ListenerDlg class
  7.     Author:                Adam Philp
  8.     Last Update:        21-DEC-99
  9.  
  10.     Target Compiler:    Microsoft Visual C++ Version 5.0
  11. */
  12.  
  13. #ifndef __lstnrdlg_h                    // Sentry, use file only if it's not already included
  14. #define __lstnrdlg_h
  15.  
  16. /////////////////////// Included files ////////////////////////////////////////////////////////////
  17.  
  18. #include "applicat.h"
  19. #include <dsound.h>
  20.  
  21. ///////////////////////    Class definition //////////////////////////////////////////////////////////
  22.  
  23. /*
  24.     Class:                ListenerDlg
  25.     Description:        Dialog class allowing user to edit 3D listener properties
  26. */
  27.  
  28. class ListenerDlg
  29. {
  30. friend BOOL CALLBACK ListenerDlgProc(HWND, UINT, WPARAM, LPARAM);
  31.  
  32. public:                                    // Public constructor and destructor
  33.     ListenerDlg();
  34.     ~ListenerDlg();
  35.  
  36. public:                                    // Public member functions
  37.     bool Create(Application*, LPDIRECTSOUND3DLISTENER);
  38.  
  39. public:                                    // Public data members
  40.     HWND                    m_hWnd;
  41.     HINSTANCE                m_hInstance;
  42.     LPDIRECTSOUND3DLISTENER    m_pListener;
  43.  
  44. protected:                                // Protected member functions
  45.     BOOL OnInitDialog(HWND, WPARAM);
  46.     BOOL OnCommand(WPARAM, LPARAM);
  47.     BOOL OnHScroll(WORD, LONG, HWND);
  48.     void OnDestroy();
  49.  
  50.     BOOL InitControls(HWND);
  51.     void SetFactors();
  52.     void SetPosition();
  53.     void SetOrientation();
  54.     void SetFactorStatics();
  55.     void SetPositionStatics();
  56.     void SetOrientationStatics();
  57.  
  58. protected:                                // Protected data members
  59.     HWND m_hDistanceSlider, m_hDopplerSlider, m_hRolloffSlider;
  60.     HWND m_hDistanceStatic, m_hDopplerStatic, m_hRolloffStatic;
  61.     HWND m_hXSlider, m_hYSlider, m_hZSlider;
  62.     HWND m_hXStatic, m_hYStatic, m_hZStatic;
  63.     HWND m_hFrontXSlider, m_hFrontYSlider, m_hFrontZSlider;
  64.     HWND m_hFrontXStatic, m_hFrontYStatic, m_hFrontZStatic;
  65.     HWND m_hTopXSlider, m_hTopYSlider, m_hTopZSlider;
  66.     HWND m_hTopXStatic, m_hTopYStatic, m_hTopZStatic;
  67.     HWND m_hImmediateBtn, m_hDeferredBtn;
  68.     HWND m_hCommitBtn, m_hDefaultBtn;
  69.  
  70.     DWORD m_dwApply;
  71. };
  72.  
  73. #endif                                    // End of sentry __lstnrdlg_h