-
Notifications
You must be signed in to change notification settings - Fork 203
/
SoundSettingDlg.h
53 lines (45 loc) · 1.37 KB
/
SoundSettingDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : [email protected]
// Web : https://crystalmark.info/
// License : MIT License
/*---------------------------------------------------------------------------*/
#pragma once
#include "DialogFx.h"
#include "ButtonFx.h"
#include "SliderCtrlFx.h"
#include "StaticFX.h"
class CSoundSettingDlg : public CDialogFx
{
DECLARE_DYNCREATE(CSoundSettingDlg)
static const int SIZE_X = 488;
static const int SIZE_Y = 104;
public:
CSoundSettingDlg(CWnd* pParent = NULL);
virtual ~CSoundSettingDlg();
enum { IDD = IDD_SOUND_SETTINGS};
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
virtual void UpdateDialogSize();
virtual void OnCancel();
void SetVolumeImage();
DECLARE_MESSAGE_MAP()
afx_msg void OnSelectFile();
afx_msg void OnPlay();
afx_msg void OnDefault();
afx_msg void OnOk();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
CString m_FilePath;
CStaticFx m_CtrlFilePath;
CButtonFx m_CtrlSelectFile;
CButtonFx m_CtrlPlay;
int m_InitialVolume;
int m_CurrentVolume;
CSliderCtrlFx m_CtrlSlider;
CButtonFx m_CtrlDefault;
CButtonFx m_CtrlOk;
CStaticFx m_CtrlVolume;
CStaticFx m_CtrlValueVolume;
};