AudioConfigDialog.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #if !defined(AFX_AUDIOCONFIGDIALOG_H__A52D1748_C2C5_4536_A5E2_50988E5D5AB2__INCLUDED_)
  19. #define AFX_AUDIOCONFIGDIALOG_H__A52D1748_C2C5_4536_A5E2_50988E5D5AB2__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "resource.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. //
  26. // AudioConfigDialogClass
  27. //
  28. /////////////////////////////////////////////////////////////////////////////
  29. class AudioConfigDialogClass : public CDialog
  30. {
  31. // Construction
  32. public:
  33. AudioConfigDialogClass(CWnd* pParent = NULL); // standard constructor
  34. // Dialog Data
  35. //{{AFX_DATA(AudioConfigDialogClass)
  36. enum { IDD = IDD_AUDIO_CONFIG };
  37. CSliderCtrl m_MusicVolSlider;
  38. CSliderCtrl m_SoundVolSlider;
  39. CSliderCtrl m_DialogVolSlider;
  40. CSliderCtrl m_CinematicVolSlider;
  41. CListCtrl m_ListCtrl;
  42. //}}AFX_DATA
  43. // Overrides
  44. // ClassWizard generated virtual function overrides
  45. //{{AFX_VIRTUAL(AudioConfigDialogClass)
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  48. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  49. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(AudioConfigDialogClass)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnDestroy();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. public:
  60. /////////////////////////////////////////////////////////////////
  61. // Public methods
  62. /////////////////////////////////////////////////////////////////
  63. void Apply_Changes (void);
  64. private:
  65. /////////////////////////////////////////////////////////////////
  66. // Private methods
  67. /////////////////////////////////////////////////////////////////
  68. void Update_Slider_Enable_State (void);
  69. /////////////////////////////////////////////////////////////////
  70. // Private member data
  71. /////////////////////////////////////////////////////////////////
  72. };
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_AUDIOCONFIGDIALOG_H__A52D1748_C2C5_4536_A5E2_50988E5D5AB2__INCLUDED_)