Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // voice_tweakDlg.h : header file
  9. //
  10. #if !defined(AFX_VOICE_TWEAKDLG_H__DC9D9CC1_33D0_4783_ABEB_F491ABE65935__INCLUDED_)
  11. #define AFX_VOICE_TWEAKDLG_H__DC9D9CC1_33D0_4783_ABEB_F491ABE65935__INCLUDED_
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif // _MSC_VER > 1000
  15. #include "voice_mixer_controls.h"
  16. #include "win_idle.h"
  17. #include "voice_tweak.h"
  18. #define WM_TWEAKIDLE (WM_USER + 111)
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CVoiceTweakDlg dialog
  21. class CVoiceTweakDlg : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CVoiceTweakDlg(CWnd* pParent = NULL); // standard constructor
  26. virtual ~CVoiceTweakDlg();
  27. void SetString(int childControl, int stringID);
  28. void Term();
  29. // Dialog Data
  30. //{{AFX_DATA(CVoiceTweakDlg)
  31. enum { IDD = IDD_VOICE_TWEAK_DIALOG };
  32. CButton m_HardwareGain;
  33. CProgressCtrl m_VoiceVolume;
  34. CSliderCtrl m_VolumeSlider;
  35. CEdit m_InstructionText;
  36. //}}AFX_DATA
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CVoiceTweakDlg)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. HICON m_hIcon;
  46. CWinIdle m_WinIdle;
  47. CAutoGain m_Gain;
  48. // Old settings (for cancel button).
  49. float m_OldVolume;
  50. // Generated message map functions
  51. //{{AFX_MSG(CVoiceTweakDlg)
  52. virtual BOOL OnInitDialog();
  53. afx_msg void OnPaint();
  54. afx_msg HCURSOR OnQueryDragIcon();
  55. afx_msg LONG OnIdle(UINT a, LONG b);
  56. afx_msg void OnDestroy();
  57. afx_msg void OnHardwareGain();
  58. virtual void OnCancel();
  59. afx_msg void OnFurtherhelp();
  60. afx_msg void OnSystemSetup();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_VOICE_TWEAKDLG_H__DC9D9CC1_33D0_4783_ABEB_F491ABE65935__INCLUDED_)