forked from hiyohiyo/CrystalDiskMark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingsDlg.h
108 lines (92 loc) · 2.62 KB
/
SettingsDlg.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : [email protected]
// Web : https://crystalmark.info/
// License : The MIT License
/*---------------------------------------------------------------------------*/
#pragma once
#include "DialogFx.h"
#include "StaticFx.h"
#include "ButtonFx.h"
#include "ComboBoxFx.h"
class CSettingsDlg : public CDialogFx
{
DECLARE_DYNCREATE(CSettingsDlg)
#ifdef SUISHO_SHIZUKU_SUPPORT
static const int SIZE_X = 680;
static const int SIZE_Y = 416;
#else
static const int SIZE_X = 440;
static const int SIZE_Y = 356;
#endif
public:
CSettingsDlg(CWnd* pParent = NULL);
virtual ~CSettingsDlg();
enum { IDD = IDD_SETTINGS };
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
virtual void OnCancel();
void UpdateDialogSize();
int GetBlockSize(CString text);
int GetType(CString text);
CStaticFx m_LabelType;
CStaticFx m_LabelSize;
CStaticFx m_LabelQueues;
CStaticFx m_LabelThreads;
CStaticFx m_LabelDefault;
CStaticFx m_LabelPeak;
CStaticFx m_LabelDemo;
CStaticFx m_LabelMeasureTime;
CStaticFx m_LabelIntervalTime;
CComboBoxFx m_ComboBenchType0;
CComboBoxFx m_ComboBenchType1;
CComboBoxFx m_ComboBenchType2;
CComboBoxFx m_ComboBenchType3;
CComboBoxFx m_ComboBenchType4;
CComboBoxFx m_ComboBenchType5;
CComboBoxFx m_ComboBenchType8;
CComboBoxFx m_ComboBenchSize0;
CComboBoxFx m_ComboBenchSize1;
CComboBoxFx m_ComboBenchSize2;
CComboBoxFx m_ComboBenchSize3;
CComboBoxFx m_ComboBenchSize4;
CComboBoxFx m_ComboBenchSize5;
CComboBoxFx m_ComboBenchSize8;
CComboBoxFx m_ComboBenchQueues0;
CComboBoxFx m_ComboBenchQueues1;
CComboBoxFx m_ComboBenchQueues2;
CComboBoxFx m_ComboBenchQueues3;
CComboBoxFx m_ComboBenchQueues4;
CComboBoxFx m_ComboBenchQueues5;
CComboBoxFx m_ComboBenchQueues8;
CComboBoxFx m_ComboBenchThreads0;
CComboBoxFx m_ComboBenchThreads1;
CComboBoxFx m_ComboBenchThreads2;
CComboBoxFx m_ComboBenchThreads3;
CComboBoxFx m_ComboBenchThreads4;
CComboBoxFx m_ComboBenchThreads5;
CComboBoxFx m_ComboBenchThreads8;
// CComboBoxFx m_ComboAffinity;
// CComboBoxFx m_ComboData;
CComboBoxFx m_ComboMeasureTime;
CComboBoxFx m_ComboIntervalTime;
CButtonFx m_ButtonSetDefault;
CButtonFx m_ButtonSetNVMe8;
// CButtonFx m_ButtonSetNVMe9;
CButtonFx m_ButtonOk;
void OnSetDefault();
void OnSetNVMe8();
// void OnSetNVMe9();
void OnOk();
void InitComboBox();
int m_BenchType[9];
int m_BenchSize[9];
int m_BenchQueues[9];
int m_BenchThreads[9];
int m_TestData;
int m_MeasureTime;
int m_IntervalTime;
DWORD m_Profile;
DECLARE_MESSAGE_MAP()
};