forked from hiyohiyo/CrystalDiskInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingDlg.h
89 lines (75 loc) · 2.1 KB
/
SettingDlg.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : [email protected]
// Web : https://crystalmark.info/
// License : The MIT License
//
// Copyright 2008 hiyohiyo. All rights reserved.
/*---------------------------------------------------------------------------*/
#pragma once
#include "afxwin.h"
#include "DialogFx.h"
#include "StaticFx.h"
#include "ButtonFx.h"
#include "ComboBoxFx.h"
class CSettingDlg : public CDialogFx
{
DECLARE_DYNCREATE(CSettingDlg)
static const int SIZE_X = 400;
static const int SIZE_Y = 304;
public:
CSettingDlg(CWnd* pParent = NULL);
virtual ~CSettingDlg();
enum { IDD = IDD_SETTING };
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
virtual void UpdateDialogSize();
void InitSelectDisk();
void InitLang();
void OnEnableAam();
void OnDisableAam();
void OnEnableApm();
void OnDisableApm();
void UpdateSelectDisk(DWORD index);
DECLARE_MESSAGE_MAP()
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnCbnSelchangeSelectDisk();
DWORD m_DiskIndex;
CString m_SelectDisk;
CString m_AamLow;
CString m_AamHigh;
CString m_AamRecommend;
CString m_ApmLow;
CString m_ApmHigh;
CString m_AamStatus;
CString m_ApmStatus;
CString m_LabelAam;
CString m_LabelApm;
CString m_CurrentAam;
CString m_RecommendAam;
CString m_CurrentApm;
CString m_EnableAam;
CString m_DisableAam;
CString m_EnableApm;
CString m_DisableApm;
CStaticFx m_CtrlAamStatus;
CStaticFx m_CtrlApmStatus;
CStaticFx m_CtrlCurrentAam;
CStaticFx m_CtrlCurrentApm;
CStaticFx m_CtrlRecommendAam;
CStaticFx m_CtrlLabelAam;
CStaticFx m_CtrlLabelApm;
CStaticFx m_CtrlLabelAamLow;
CStaticFx m_CtrlLabelAamHigh;
CStaticFx m_CtrlLabelAamRecommend;
CStaticFx m_CtrlLabelApmLow;
CStaticFx m_CtrlLabelApmHigh;
CButtonFx m_CtrlEnableAam;
CButtonFx m_CtrlDisableAam;
CButtonFx m_CtrlEnableApm;
CButtonFx m_CtrlDisableApm;
CComboBoxFx m_CtrlSelectDisk;
CScrollBar m_AamScrollbar;
CScrollBar m_ApmScrollbar;
};