forked from hiyohiyo/CrystalDiskInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingDlg.h
More file actions
101 lines (77 loc) · 2.14 KB
/
Copy pathSettingDlg.h
File metadata and controls
101 lines (77 loc) · 2.14 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
/*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : hiyohiyo@crystalmark.info
// Web : https://crystalmark.info/
// License : The MIT License
//
// Copyright 2008 hiyohiyo. All rights reserved.
/*---------------------------------------------------------------------------*/
#pragma once
#include "afxwin.h"
#include "DialogCx.h"
#include "StaticCx.h"
#include "ButtonCx.h"
#include "ComboBoxCx.h"
class CSettingDlg : public CDialogCx
{
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:
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_RecommendApm;
CString m_EnableAam;
CString m_DisableAam;
CString m_EnableApm;
CString m_DisableApm;
CStaticCx m_CtrlAamStatus;
CStaticCx m_CtrlApmStatus;
CStaticCx m_CtrlCurrentAam;
CStaticCx m_CtrlCurrentApm;
CStaticCx m_CtrlRecommendAam;
CStaticCx m_CtrlLabelAam;
CStaticCx m_CtrlLabelApm;
CStaticCx m_CtrlLabelAamLow;
CStaticCx m_CtrlLabelAamHigh;
CStaticCx m_CtrlLabelAamRecommend;
CStaticCx m_CtrlLabelApmLow;
CStaticCx m_CtrlLabelApmHigh;
CButtonCx m_CtrlEnableAam;
CButtonCx m_CtrlDisableAam;
CButtonCx m_CtrlEnableApm;
CButtonCx m_CtrlDisableApm;
CComboBoxCx m_CtrlSelectDisk;
CScrollBar m_AamScrollbar;
CScrollBar m_ApmScrollbar;
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()
public:
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnCbnSelchangeSelectDisk();
};