PerformanceConfigDialog.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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_PERFORMANCECONFIGDIALOG_H__883CE8FB_E4D2_493A_84F0_C75F2A7826BB__INCLUDED_)
  19. #define AFX_PERFORMANCECONFIGDIALOG_H__883CE8FB_E4D2_493A_84F0_C75F2A7826BB__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "resource.h"
  24. #include "vector.h"
  25. /////////////////////////////////////////////////////////////////////////////
  26. // PerformanceConfigDialogClass dialog
  27. class PerformanceConfigDialogClass : public CDialog
  28. {
  29. // Construction
  30. public:
  31. PerformanceConfigDialogClass(CWnd* pParent = NULL); // standard constructor
  32. // Dialog Data
  33. //{{AFX_DATA(PerformanceConfigDialogClass)
  34. enum { IDD = IDD_PERFORMANCE_CONFIG };
  35. CSliderCtrl m_GeometrySlider;
  36. CSliderCtrl m_CharShadowsSlider;
  37. CSliderCtrl m_TextureDetailSlider;
  38. CSliderCtrl m_SurfaceEffectsSlider;
  39. CSliderCtrl m_PerformanceSlider;
  40. CSliderCtrl m_ParticleSlider;
  41. //}}AFX_DATA
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(PerformanceConfigDialogClass)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. // Generated message map functions
  52. //{{AFX_MSG(PerformanceConfigDialogClass)
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnExpertCheck();
  55. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  56. afx_msg void OnGraphicsAutoSetup();
  57. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. public:
  61. /////////////////////////////////////////////////////////////////
  62. // Public methods
  63. /////////////////////////////////////////////////////////////////
  64. void Apply_Changes (void);
  65. private:
  66. /////////////////////////////////////////////////////////////////
  67. // Private methods
  68. /////////////////////////////////////////////////////////////////
  69. void Build_Expert_Window_List (void);
  70. void Display_Expert_Settings (bool onoff);
  71. void Setup_Controls (void);
  72. void Update_Expert_Controls (int level);
  73. void Load_Values (void);
  74. void Determine_Performance_Setting (void);
  75. void Get_Settings (DynamicVectorClass<int> &settings);
  76. /////////////////////////////////////////////////////////////////
  77. // Private member data
  78. /////////////////////////////////////////////////////////////////
  79. DynamicVectorClass<HWND> ExpertWindowList;
  80. };
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_PERFORMANCECONFIGDIALOG_H__883CE8FB_E4D2_493A_84F0_C75F2A7826BB__INCLUDED_)