summaryrefslogtreecommitdiff
path: root/utils/voice_tweak/voice_tweakDlg.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/voice_tweak/voice_tweakDlg.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/voice_tweak/voice_tweakDlg.h')
-rw-r--r--utils/voice_tweak/voice_tweakDlg.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/utils/voice_tweak/voice_tweakDlg.h b/utils/voice_tweak/voice_tweakDlg.h
new file mode 100644
index 0000000..60d8a63
--- /dev/null
+++ b/utils/voice_tweak/voice_tweakDlg.h
@@ -0,0 +1,85 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+// voice_tweakDlg.h : header file
+//
+
+#if !defined(AFX_VOICE_TWEAKDLG_H__DC9D9CC1_33D0_4783_ABEB_F491ABE65935__INCLUDED_)
+#define AFX_VOICE_TWEAKDLG_H__DC9D9CC1_33D0_4783_ABEB_F491ABE65935__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+
+#include "voice_mixer_controls.h"
+#include "win_idle.h"
+#include "voice_tweak.h"
+
+
+#define WM_TWEAKIDLE (WM_USER + 111)
+
+
+/////////////////////////////////////////////////////////////////////////////
+// CVoiceTweakDlg dialog
+
+class CVoiceTweakDlg : public CDialog
+{
+// Construction
+public:
+ CVoiceTweakDlg(CWnd* pParent = NULL); // standard constructor
+ virtual ~CVoiceTweakDlg();
+
+ void SetString(int childControl, int stringID);
+ void Term();
+
+// Dialog Data
+ //{{AFX_DATA(CVoiceTweakDlg)
+ enum { IDD = IDD_VOICE_TWEAK_DIALOG };
+ CButton m_HardwareGain;
+ CProgressCtrl m_VoiceVolume;
+ CSliderCtrl m_VolumeSlider;
+ CEdit m_InstructionText;
+ //}}AFX_DATA
+
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CVoiceTweakDlg)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+ HICON m_hIcon;
+ CWinIdle m_WinIdle;
+
+ CAutoGain m_Gain;
+
+ // Old settings (for cancel button).
+ float m_OldVolume;
+
+
+ // Generated message map functions
+ //{{AFX_MSG(CVoiceTweakDlg)
+ virtual BOOL OnInitDialog();
+ afx_msg void OnPaint();
+ afx_msg HCURSOR OnQueryDragIcon();
+ afx_msg LONG OnIdle(UINT a, LONG b);
+ afx_msg void OnDestroy();
+ afx_msg void OnHardwareGain();
+ virtual void OnCancel();
+ afx_msg void OnFurtherhelp();
+ afx_msg void OnSystemSetup();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_VOICE_TWEAKDLG_H__DC9D9CC1_33D0_4783_ABEB_F491ABE65935__INCLUDED_)