2
2
// Author : hiyohiyo
3
3
4
4
// Web : https://crystalmark.info/
5
- // License : The MIT License
5
+ // License : MIT License
6
6
/* ---------------------------------------------------------------------------*/
7
7
8
8
#include " stdafx.h"
@@ -43,7 +43,7 @@ CAboutDlg::~CAboutDlg()
43
43
void CAboutDlg::DoDataExchange (CDataExchange* pDX)
44
44
{
45
45
CDialogFx::DoDataExchange (pDX);
46
- DDX_Control (pDX, IDC_CRYSTAL_DEW_WORLD, m_CtrlCrystalDewWorld );
46
+ DDX_Control (pDX, IDC_LOGO, m_CtrlLogo );
47
47
48
48
DDX_Control (pDX, IDC_PROJECT_SITE_1, m_CtrlProjectSite1);
49
49
DDX_Control (pDX, IDC_PROJECT_SITE_2, m_CtrlProjectSite2);
@@ -81,7 +81,7 @@ BOOL CAboutDlg::OnInitDialog()
81
81
}
82
82
83
83
BEGIN_MESSAGE_MAP (CAboutDlg, CDialogFx)
84
- ON_BN_CLICKED(IDC_CRYSTAL_DEW_WORLD , &CAboutDlg::OnCrystalDewWorld )
84
+ ON_BN_CLICKED(IDC_LOGO , &CAboutDlg::OnLogo )
85
85
ON_BN_CLICKED(IDC_LICENSE, &CAboutDlg::OnLicense)
86
86
ON_BN_CLICKED(IDC_VERSION, &CAboutDlg::OnVersion)
87
87
#ifdef SUISHO_SHIZUKU_SUPPORT
@@ -103,60 +103,97 @@ void CAboutDlg::UpdateDialogSize()
103
103
SetClientSize (SIZE_X, SIZE_Y, m_ZoomRatio);
104
104
UpdateBackground (TRUE , m_bDarkMode);
105
105
106
- #ifdef TSUKUMO_TOKKA_SUPPORT
107
- m_CtrlCrystalDewWorld.InitControl (20 , 20 , 128 , 128 , m_ZoomRatio, &m_BkDC, IP (L" Logo" ), 1 , BS_CENTER, OwnerDrawImage, FALSE , FALSE , FALSE );
108
- m_CtrlProjectSite1.ShowWindow (SW_HIDE);
109
- m_CtrlProjectSite2.ShowWindow (SW_HIDE);
110
- m_CtrlProjectSite3.ShowWindow (SW_HIDE);
111
- m_CtrlProjectSite4.ShowWindow (SW_HIDE);
112
- m_CtrlProjectSite5.ShowWindow (SW_HIDE);
106
+ #ifdef SUISHO_AOI_SUPPORT
107
+ m_CtrlLogo.InitControl (32 , 484 , 128 , 144 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
108
+ m_CtrlSecretVoice.InitControl (392 , 288 , 60 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
109
+ m_CtrlProjectSite1.InitControl (184 , 508 , 148 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
110
+ m_CtrlProjectSite2.InitControl (244 , 540 , 108 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
111
+ m_CtrlProjectSite3.InitControl (232 , 556 , 180 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
112
+ m_CtrlProjectSite4.InitControl (244 , 576 , 120 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
113
+ m_CtrlProjectSite5.InitControl (0 , 0 , 0 , 0 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
114
+ m_CtrlSecretVoice.SetHandCursor ();
115
+ m_CtrlProjectSite1.SetHandCursor ();
116
+ m_CtrlProjectSite2.SetHandCursor ();
117
+ m_CtrlProjectSite3.SetHandCursor ();
118
+ m_CtrlProjectSite4.SetHandCursor ();
119
+ m_CtrlProjectSite5.SetHandCursor ();
120
+
121
+ #elif MSI_MEI_SUPPORT
122
+ m_CtrlProjectSite1.InitControl (24 , 476 , 348 , 128 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
123
+ m_CtrlProjectSite2.InitControl (168 , 632 , 36 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
124
+ m_CtrlProjectSite3.InitControl (332 , 632 , 104 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
125
+ m_CtrlProjectSite4.InitControl (20 , 20 , 120 , 40 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
126
+ m_CtrlProjectSite5.InitControl (460 , 632 , 168 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
127
+ m_CtrlLogo.InitControl (80 , 64 , 128 , 128 , m_ZoomRatio, &m_BkDC, IP (L" Logo" ), 1 , BS_CENTER, OwnerDrawImage, FALSE , FALSE , FALSE );
128
+ m_CtrlProjectSite1.SetHandCursor ();
129
+ m_CtrlProjectSite2.SetHandCursor ();
130
+ m_CtrlProjectSite3.SetHandCursor ();
131
+ m_CtrlProjectSite4.SetHandCursor ();
132
+ m_CtrlProjectSite5.SetHandCursor ();
133
+
113
134
#elif SUISHO_SHIZUKU_SUPPORT
114
135
m_CtrlProjectSite1.InitControl (64 , 372 , 140 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
115
136
m_CtrlProjectSite2.InitControl (64 , 416 , 148 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
116
137
m_CtrlProjectSite3.InitControl (64 , 432 , 184 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
117
138
m_CtrlProjectSite4.InitControl (40 , 460 , 208 , 16 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
118
139
m_CtrlProjectSite5.InitControl (92 , 504 , 432 , 124 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
119
- m_CtrlCrystalDewWorld .InitControl (80 , 12 , 128 , 128 , m_ZoomRatio, &m_BkDC, IP (L" Logo" ), 1 , BS_CENTER, OwnerDrawImage, FALSE , FALSE , FALSE );
140
+ m_CtrlLogo .InitControl (80 , 12 , 128 , 128 , m_ZoomRatio, &m_BkDC, IP (L" Logo" ), 1 , BS_CENTER, OwnerDrawImage, FALSE , FALSE , FALSE );
120
141
m_CtrlProjectSite1.SetHandCursor ();
121
142
m_CtrlProjectSite2.SetHandCursor ();
122
143
m_CtrlProjectSite3.SetHandCursor ();
123
144
m_CtrlProjectSite4.SetHandCursor ();
124
145
m_CtrlProjectSite5.SetHandCursor ();
125
146
#else
126
- m_CtrlCrystalDewWorld .InitControl (12 , 12 , 128 , 128 , m_ZoomRatio, &m_BkDC, IP (L" Logo" ), 1 , BS_CENTER, OwnerDrawImage, FALSE , FALSE , FALSE );
147
+ m_CtrlLogo .InitControl (12 , 12 , 128 , 128 , m_ZoomRatio, &m_BkDC, IP (L" Logo" ), 1 , BS_CENTER, OwnerDrawImage, FALSE , FALSE , FALSE );
127
148
m_CtrlProjectSite1.ShowWindow (SW_HIDE);
128
149
m_CtrlProjectSite2.ShowWindow (SW_HIDE);
129
150
m_CtrlProjectSite3.ShowWindow (SW_HIDE);
130
151
m_CtrlProjectSite4.ShowWindow (SW_HIDE);
131
152
m_CtrlProjectSite5.ShowWindow (SW_HIDE);
132
153
#endif
133
154
134
- m_CtrlCrystalDewWorld .SetHandCursor ();
155
+ m_CtrlLogo .SetHandCursor ();
135
156
136
- m_CtrlVersion.SetFontEx (m_FontFace, 22 , 22 , m_ZoomRatio, m_FontRatio, RGB (0 , 0 , 0 ), FW_BOLD, m_FontRender);
137
- m_CtrlEdition.SetFontEx (m_FontFace, 22 , 22 , m_ZoomRatio, m_FontRatio, RGB (0 , 0 , 0 ), FW_BOLD, m_FontRender);
138
- m_CtrlRelease.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, RGB (0 , 0 , 0 ), FW_NORMAL, m_FontRender);
139
- m_CtrlCopyright1.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, RGB (0 , 0 , 0 ), FW_NORMAL, m_FontRender);
140
- m_CtrlCopyright2.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, RGB (0 , 0 , 0 ), FW_NORMAL, m_FontRender);
141
- m_CtrlLicense.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, RGB (0 , 0 , 0 ), FW_NORMAL, m_FontRender);
157
+ #ifdef MSI_MEI_SUPPORT
158
+ COLORREF fontColor = RGB (255 , 255 , 255 );
159
+ #else
160
+ COLORREF fontColor = RGB (0 , 0 , 0 );
161
+ #endif
162
+
163
+ m_CtrlVersion.SetFontEx (m_FontFace, 22 , 22 , m_ZoomRatio, m_FontRatio, fontColor, FW_BOLD, m_FontRender);
164
+ m_CtrlEdition.SetFontEx (m_FontFace, 22 , 22 , m_ZoomRatio, m_FontRatio, fontColor, FW_BOLD, m_FontRender);
165
+ m_CtrlRelease.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, fontColor, FW_NORMAL, m_FontRender);
166
+ m_CtrlCopyright1.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, fontColor, FW_NORMAL, m_FontRender);
167
+ m_CtrlCopyright2.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, fontColor, FW_NORMAL, m_FontRender);
168
+ m_CtrlLicense.SetFontEx (m_FontFace, 16 , 16 , m_ZoomRatio, m_FontRatio, fontColor, FW_NORMAL, m_FontRender);
142
169
143
170
m_CtrlVersion.SetHandCursor ();
144
171
m_CtrlLicense.SetHandCursor ();
145
172
146
- #ifdef TSUKUMO_TOKKA_SUPPORT
147
- m_CtrlVersion.InitControl (152 , 12 , 476 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
148
- m_CtrlEdition.InitControl (152 , 40 , 476 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
149
- m_CtrlRelease.InitControl (152 , 72 , 476 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
150
- m_CtrlCopyright1.InitControl (152 , 96 , 476 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
151
- m_CtrlCopyright2.InitControl (152 , 116 , 476 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
152
- m_CtrlLicense.InitControl (152 , 136 , 476 , 20 , m_ZoomRatio, & m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
173
+ #ifdef SUISHO_AOI_SUPPORT
174
+ m_CtrlVersion.InitControl (0 , 152 , 288 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
175
+ m_CtrlEdition.InitControl (0 , 180 , 288 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
176
+ m_CtrlRelease.InitControl (0 , 216 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
177
+ m_CtrlCopyright1.InitControl (0 , 236 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
178
+ m_CtrlCopyright2.InitControl (0 , 256 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
179
+ m_CtrlLicense.InitControl (0 , 276 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
180
+
181
+ #elif MSI_MEI_SUPPORT
182
+ m_CtrlVersion.InitControl (0 , 204 , 288 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
183
+ m_CtrlEdition.InitControl (0 , 232 , 288 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
184
+ m_CtrlRelease.InitControl (0 , 268 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
185
+ m_CtrlCopyright1.InitControl (0 , 288 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
186
+ m_CtrlCopyright2.InitControl (0 , 308 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
187
+ m_CtrlLicense.InitControl (0 , 328 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
188
+
153
189
#elif SUISHO_SHIZUKU_SUPPORT
154
190
m_CtrlVersion.InitControl (0 , 152 , 288 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
155
191
m_CtrlEdition.InitControl (0 , 180 , 288 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
156
192
m_CtrlRelease.InitControl (0 , 216 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
157
193
m_CtrlCopyright1.InitControl (0 , 236 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
158
194
m_CtrlCopyright2.InitControl (0 , 256 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
159
195
m_CtrlLicense.InitControl (0 , 276 , 288 , 20 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, FALSE , FALSE , FALSE );
196
+
160
197
#else
161
198
m_CtrlVersion.InitControl (140 , 12 , 340 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , BS_CENTER, OwnerDrawTransparent, m_bHighContrast, m_bDarkMode, FALSE );
162
199
m_CtrlEdition.InitControl (140 , 40 , 340 , 28 , m_ZoomRatio, &m_BkDC, NULL , 0 , SS_CENTER, OwnerDrawTransparent, m_bHighContrast, m_bDarkMode, FALSE );
@@ -169,7 +206,7 @@ void CAboutDlg::UpdateDialogSize()
169
206
Invalidate ();
170
207
}
171
208
172
- void CAboutDlg::OnCrystalDewWorld ()
209
+ void CAboutDlg::OnLogo ()
173
210
{
174
211
if (GetUserDefaultLCID () == 0x0411 )// Japanese
175
212
{
0 commit comments