xref: /MusicPlayer2/MusicPlayer2/ReverbDlg.h (revision 6ff78c2af22a2540d4da0cd487a360b3fffc6e91)
1 #pragma once
2 #include "TabDlg.h"
3 
4 // CReverbDlg 对话框
5 
6 class CReverbDlg : public CTabDlg
7 {
8     DECLARE_DYNAMIC(CReverbDlg)
9 
10 public:
11     CReverbDlg(CWnd* pParent = NULL);   // 标准构造函数
12     virtual ~CReverbDlg();
13 
14 // 对话框数据
15 #ifdef AFX_DESIGN_TIME
16     enum { IDD = IDD_REVERB_DIALOG };
17 #endif
18 
19 protected:
20     CSliderCtrl m_reverb_mix_slider;
21     CSliderCtrl m_reverb_time_slider;
22 
23     void EnableControls(bool enable);                   //启用或禁用控件
24     void UpdateStaticText(int mix, int time);           //更新静态控件上的文本
25 
26     virtual bool InitializeControls() override;
27     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
28 
29     DECLARE_MESSAGE_MAP()
30 public:
31     virtual BOOL OnInitDialog();
32     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
33     afx_msg void OnBnClickedEnableReverbCheck();
34     afx_msg void OnDestroy();
35 };
36