• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Tera Termの個人的な作業用リポジトリ


Commit MetaInfo

Revisão9cdcebde6d367723abe608f1b619c9b375efba9e (tree)
Hora2020-04-23 23:29:25
Autorzmatsuo <zmatsuo@user...>
Commiterzmatsuo

Mensagem de Log

現在バージョンを表示するようにした

- リソース名を変更
- VS2008, VS2019プロジェクトを修正

git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@8734 f5f01b69-1e22-0410-acbf-894ab4bd6246

Mudança Sumário

Diff

--- a/TTXSamples/TTXCheckUpdate/CMakeLists.txt
+++ b/TTXSamples/TTXCheckUpdate/CMakeLists.txt
@@ -43,6 +43,7 @@ target_compile_definitions(
4343 target_include_directories(
4444 TTXCheckUpdate
4545 PRIVATE
46+ ${CMAKE_CURRENT_BINARY_DIR}/../../teraterm/ttpdlg # for svnversion.h
4647 ../../libs/cJSON
4748 ../../teraterm/teraterm
4849 ../../teraterm/common
--- a/TTXSamples/TTXCheckUpdate/TTXCheckUpdate.v16.vcxproj
+++ b/TTXSamples/TTXCheckUpdate/TTXCheckUpdate.v16.vcxproj
@@ -55,7 +55,7 @@
5555 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
5656 <ClCompile>
5757 <Optimization>Disabled</Optimization>
58- <AdditionalIncludeDirectories>$(SolutionDir)..\teraterm\common;$(SolutionDir)..\teraterm\teraterm;$(SolutionDir)..\libs\cJSON;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
58+ <AdditionalIncludeDirectories>$(SolutionDir)..\teraterm\common;$(SolutionDir)..\teraterm\teraterm;$(SolutionDir)..\teraterm\ttpdlg;$(SolutionDir)..\libs\cJSON;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
5959 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CJSON_HIDE_SYMBOLS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6060 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
6161 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
@@ -74,7 +74,7 @@
7474 </ItemDefinitionGroup>
7575 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
7676 <ClCompile>
77- <AdditionalIncludeDirectories>$(SolutionDir)..\teraterm\common;$(SolutionDir)..\teraterm\teraterm;$(SolutionDir)..\libs\cJSON;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
77+ <AdditionalIncludeDirectories>$(SolutionDir)..\teraterm\common;$(SolutionDir)..\teraterm\teraterm;$(SolutionDir)..\teraterm\ttpdlg;$(SolutionDir)..\libs\cJSON;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
7878 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CJSON_HIDE_SYMBOLS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7979 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
8080 <PrecompiledHeader />
@@ -109,4 +109,4 @@
109109 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
110110 <ImportGroup Label="ExtensionTargets">
111111 </ImportGroup>
112-</Project>
112+</Project>
\ No newline at end of file
--- a/TTXSamples/TTXCheckUpdate/TTXCheckUpdate.v16.vcxproj.filters
+++ b/TTXSamples/TTXCheckUpdate/TTXCheckUpdate.v16.vcxproj.filters
@@ -27,20 +27,11 @@
2727 <ClCompile Include="parse.cpp">
2828 <Filter>Source Files</Filter>
2929 </ClCompile>
30- <ClCompile Include="getcontent.cpp">
31- <Filter>Source Files</Filter>
32- </ClCompile>
33- <ClCompile Include="../../teraterm/common/ttlib.c">
34- <Filter>Source Files</Filter>
35- </ClCompile>
3630 <ClCompile Include="../../libs/cJSON/cJSON.c">
3731 <Filter>cJSON</Filter>
3832 </ClCompile>
3933 </ItemGroup>
4034 <ItemGroup>
41- <ClInclude Include="getcontent.h">
42- <Filter>Header Files</Filter>
43- </ClInclude>
4435 <ClInclude Include="parse.h">
4536 <Filter>Header Files</Filter>
4637 </ClInclude>
@@ -62,4 +53,4 @@
6253 <Filter>Resource Files</Filter>
6354 </ResourceCompile>
6455 </ItemGroup>
65-</Project>
56+</Project>
\ No newline at end of file
--- a/TTXSamples/TTXCheckUpdate/TTXCheckUpdate.v8.vcproj
+++ b/TTXSamples/TTXCheckUpdate/TTXCheckUpdate.v8.vcproj
@@ -40,7 +40,7 @@
4040 <Tool
4141 Name="VCCLCompilerTool"
4242 Optimization="0"
43- AdditionalIncludeDirectories="&quot;$(SolutionDir)..\teraterm\common&quot;;&quot;$(SolutionDir)..\teraterm\teraterm&quot;;&quot;$(SolutionDir)..\libs\cJSON&quot;"
43+ AdditionalIncludeDirectories="&quot;$(SolutionDir)..\teraterm\common&quot;;&quot;$(SolutionDir)..\teraterm\teraterm&quot;;&quot;$(SolutionDir)..\teraterm\ttpdlg&quot;;&quot;$(SolutionDir)..\libs\cJSON&quot;"
4444 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;CJSON_HIDE_SYMBOLS"
4545 MinimalRebuild="true"
4646 BasicRuntimeChecks="3"
@@ -61,7 +61,7 @@
6161 />
6262 <Tool
6363 Name="VCLinkerTool"
64- AdditionalDependencies="&quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\common_static.lib&quot; &quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\ttpcmn.lib&quot; Wininet.lib user32.lib"
64+ AdditionalDependencies="&quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\common_static.lib&quot; &quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\ttpcmn.lib&quot; wininet.lib user32.lib gdi32.lib shell32.lib ole32.lib"
6565 LinkIncremental="2"
6666 GenerateDebugInformation="true"
6767 SubSystem="2"
@@ -117,7 +117,7 @@
117117 />
118118 <Tool
119119 Name="VCCLCompilerTool"
120- AdditionalIncludeDirectories="&quot;$(SolutionDir)..\teraterm\common&quot;;&quot;$(SolutionDir)..\teraterm\teraterm&quot;;&quot;$(SolutionDir)..\libs\cJSON&quot;"
120+ AdditionalIncludeDirectories="&quot;$(SolutionDir)..\teraterm\common&quot;;&quot;$(SolutionDir)..\teraterm\teraterm&quot;;&quot;$(SolutionDir)..\teraterm\ttpdlg&quot;;&quot;$(SolutionDir)..\libs\cJSON&quot;"
121121 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;CJSON_HIDE_SYMBOLS"
122122 RuntimeLibrary="0"
123123 UsePrecompiledHeader="0"
@@ -136,7 +136,7 @@
136136 />
137137 <Tool
138138 Name="VCLinkerTool"
139- AdditionalDependencies="&quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\common_static.lib&quot; &quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\ttpcmn.lib&quot; Wininet.lib user32.lib"
139+ AdditionalDependencies="&quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\common_static.lib&quot; &quot;$(SolutionDir)..\teraterm\$(ConfigurationName)\ttpcmn.lib&quot; wininet.lib user32.lib gdi32.lib shell32.lib ole32.lib"
140140 LinkIncremental="1"
141141 GenerateDebugInformation="true"
142142 SubSystem="2"
--- a/TTXSamples/TTXCheckUpdate/resource.h
+++ b/TTXSamples/TTXCheckUpdate/resource.h
@@ -2,11 +2,12 @@
22 // Microsoft Visual C++ で生成されたインクルード ファイル。
33 // resource.rc で使用
44 //
5-#define IDD_DIALOG1 101
6-#define IDC_EDIT1 1001
7-#define IDC_COMBO1 1002
8-#define IDC_EDIT2 1003
9-#define IDC_BUTTON2 1004
5+#define IDD_CHECK_UPDATE_DIALOG 101
6+#define IDC_DETAIL_EDIT 1001
7+#define IDC_VERSION_DROPDOWN 1002
8+#define IDC_URL_EDIT 1003
9+#define IDC_OPEN 1004
10+#define IDC_VERSION_LABEL 1005
1011
1112 // Next default values for new objects
1213 //
@@ -14,7 +15,7 @@
1415 #ifndef APSTUDIO_READONLY_SYMBOLS
1516 #define _APS_NEXT_RESOURCE_VALUE 103
1617 #define _APS_NEXT_COMMAND_VALUE 40001
17-#define _APS_NEXT_CONTROL_VALUE 1005
18+#define _APS_NEXT_CONTROL_VALUE 1006
1819 #define _APS_NEXT_SYMED_VALUE 101
1920 #endif
2021 #endif
--- a/TTXSamples/TTXCheckUpdate/resource.rc
+++ b/TTXSamples/TTXCheckUpdate/resource.rc
@@ -44,25 +44,35 @@ END
4444
4545 #endif // APSTUDIO_INVOKED
4646
47+#endif // 日本語 (日本) resources
48+/////////////////////////////////////////////////////////////////////////////
49+
50+
51+/////////////////////////////////////////////////////////////////////////////
52+// 英語 resources
53+
54+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
55+LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
56+#pragma code_page(1252)
4757
4858 /////////////////////////////////////////////////////////////////////////////
4959 //
5060 // Dialog
5161 //
5262
53-IDD_DIALOG1 DIALOGEX 0, 0, 253, 218
63+IDD_CHECK_UPDATE_DIALOG DIALOGEX 0, 0, 253, 218
5464 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
5565 CAPTION "Check Update"
5666 FONT 8, "MS Shell Dlg", 400, 0, 0x1
5767 BEGIN
5868 DEFPUSHBUTTON "OK",IDOK,196,197,50,14
59- LTEXT "version",IDC_STATIC,7,9,24,8
60- COMBOBOX IDC_COMBO1,19,23,113,64,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
69+ LTEXT "&Version",IDC_VERSION_LABEL,7,9,239,8
70+ COMBOBOX IDC_VERSION_DROPDOWN,19,23,148,121,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
6171 LTEXT "url",IDC_STATIC,7,42,29,8
62- EDITTEXT IDC_EDIT2,19,52,225,14,ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP
63- PUSHBUTTON "Open",IDC_BUTTON2,19,72,50,14
72+ EDITTEXT IDC_URL_EDIT,19,52,227,14,ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP
73+ PUSHBUTTON "&Open",IDC_OPEN,19,72,50,14
6474 LTEXT "detail",IDC_STATIC,7,93,18,8
65- EDITTEXT IDC_EDIT1,19,106,226,86,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP
75+ EDITTEXT IDC_DETAIL_EDIT,19,106,227,86,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP
6676 END
6777
6878
@@ -74,7 +84,7 @@ END
7484 #ifdef APSTUDIO_INVOKED
7585 GUIDELINES DESIGNINFO
7686 BEGIN
77- IDD_DIALOG1, DIALOG
87+ IDD_CHECK_UPDATE_DIALOG, DIALOG
7888 BEGIN
7989 LEFTMARGIN, 7
8090 RIGHTMARGIN, 246
@@ -91,12 +101,12 @@ END
91101 // AFX_DIALOG_LAYOUT
92102 //
93103
94-IDD_DIALOG1 AFX_DIALOG_LAYOUT
104+IDD_CHECK_UPDATE_DIALOG AFX_DIALOG_LAYOUT
95105 BEGIN
96106 0
97107 END
98108
99-#endif // 日本語 (日本) resources
109+#endif // 英語 resources
100110 /////////////////////////////////////////////////////////////////////////////
101111
102112
--- a/TTXSamples/TTXCheckUpdate/ttxcheckupdate.c
+++ b/TTXSamples/TTXCheckUpdate/ttxcheckupdate.c
@@ -41,6 +41,9 @@
4141 #include "dlglib.h"
4242 #include "i18n.h"
4343 #include "layer_for_unicode.h"
44+#include "asprintf.h"
45+#include "tt-version.h" // for TT_VERSION_MAJOR, TT_VERSION_MINOR
46+#include "svnversion.h" // for SVNVERSION
4447
4548 #include "resource.h"
4649 #include "parse.h"
@@ -60,17 +63,38 @@ typedef struct {
6063 static TInstVar InstVar;
6164 static TInstVar *pvar;
6265
66+/**
67+ * ドロップダウンにバージョン情報一覧の一覧をセットする
68+ *
69+ * 最初に見つかった
70+ * running_version のメジャーバージョンと同じ
71+ * バージョン情報を選択する
72+ */
6373 static int SetDropdown(HWND hDlg, int running_version)
6474 {
6575 const int version_major = running_version / 10000;
76+ const int version_minor = running_version % 10000;
77+ char *str;
6678 int cursor = -1;
6779 size_t i;
80+ char version_label[32];
81+
82+ GetDlgItemText(hDlg, IDC_VERSION_LABEL, version_label, sizeof(version_label));
83+#if defined(SVNVERSION)
84+ asprintf(&str, "%s (current version teraterm:%d.%d, ttxcheckupdate:%d.%d %s r%d)", version_label, version_major,
85+ version_minor, TT_VERSION_MAJOR, TT_VERSION_MINOR, BRANCH_NAME, SVNVERSION);
86+#else
87+ asprintf(&str, "%s (current version teraterm:%d.%d, ttxcheckupdate:%d.%d)", version_label, version_major,
88+ version_minor, TT_VERSION_MAJOR, TT_VERSION_MINOR);
89+#endif
90+ SetDlgItemTextA(hDlg, IDC_VERSION_LABEL, str);
91+ free(str);
6892
69- _SendDlgItemMessageW(hDlg, IDC_COMBO1, CB_RESETCONTENT, 0, 0);
93+ _SendDlgItemMessageW(hDlg, IDC_VERSION_DROPDOWN, CB_RESETCONTENT, 0, 0);
7094 for (i = 0; i < pvar->versions_count; i++) {
7195 const version_one_t *v = &pvar->versions[i];
7296 wchar_t *strW = ToWcharU8(v->version_text);
73- _SendDlgItemMessageW(hDlg, IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)strW);
97+ _SendDlgItemMessageW(hDlg, IDC_VERSION_DROPDOWN, CB_ADDSTRING, 0, (LPARAM)strW);
7498 free(strW);
7599 if (cursor == -1 && v->version_major == version_major) {
76100 cursor = (int)i;
@@ -82,23 +106,26 @@ static int SetDropdown(HWND hDlg, int running_version)
82106 return cursor;
83107 }
84108
109+/**
110+ * version_one_t の情報をダイアログに表示する
111+ */
85112 static void SetTexts(HWND hDlg, const version_one_t *version)
86113 {
87114 const version_one_t *v = version;
88115
89116 wchar_t *strW = ToWcharU8(v->text);
90- _SetWindowTextW(GetDlgItem(hDlg, IDC_EDIT1), strW);
117+ _SetWindowTextW(GetDlgItem(hDlg, IDC_DETAIL_EDIT), strW);
91118 free(strW);
92119
93120 if (v->url == NULL) {
94- EnableWindow(GetDlgItem(hDlg, IDC_BUTTON2), FALSE);
95- EnableWindow(GetDlgItem(hDlg, IDC_EDIT2), FALSE);
96- SetWindowTextA(GetDlgItem(hDlg, IDC_EDIT2), "");
121+ EnableWindow(GetDlgItem(hDlg, IDC_OPEN), FALSE);
122+ EnableWindow(GetDlgItem(hDlg, IDC_URL_EDIT), FALSE);
123+ SetWindowTextA(GetDlgItem(hDlg, IDC_URL_EDIT), "");
97124 }
98125 else {
99- EnableWindow(GetDlgItem(hDlg, IDC_BUTTON2), TRUE);
100- EnableWindow(GetDlgItem(hDlg, IDC_EDIT2), TRUE);
101- SetWindowTextA(GetDlgItem(hDlg, IDC_EDIT2), v->url);
126+ EnableWindow(GetDlgItem(hDlg, IDC_OPEN), TRUE);
127+ EnableWindow(GetDlgItem(hDlg, IDC_URL_EDIT), TRUE);
128+ SetWindowTextA(GetDlgItem(hDlg, IDC_URL_EDIT), v->url);
102129 }
103130 }
104131
@@ -108,8 +135,9 @@ static INT_PTR CALLBACK DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara
108135 switch (msg) {
109136 case WM_INITDIALOG: {
110137 int cursor = SetDropdown(hDlg, pvar->ts->RunningVersion);
111- SendDlgItemMessage(hDlg, IDC_COMBO1, CB_SETCURSEL, cursor, 0);
138+ SendDlgItemMessage(hDlg, IDC_VERSION_DROPDOWN, CB_SETCURSEL, cursor, 0);
112139 SetTexts(hDlg, &pvar->versions[cursor]);
140+ PostMessage(hDlg, WM_NEXTDLGCTL, (WPARAM)GetDlgItem(hDlg, IDOK), TRUE);
113141 CenterWindow(hDlg, GetParent(hDlg));
114142 break;
115143 }
@@ -122,14 +150,14 @@ static INT_PTR CALLBACK DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara
122150 case IDCANCEL | (BN_CLICKED << 16):
123151 EndDialog(hDlg, 0);
124152 break;
125- case IDC_BUTTON2 | (BN_CLICKED << 16): {
126- int cursor = (int)SendDlgItemMessage(hDlg, IDC_COMBO1, CB_GETCURSEL, 0, 0);
153+ case IDC_OPEN | (BN_CLICKED << 16): {
154+ int cursor = (int)SendDlgItemMessage(hDlg, IDC_VERSION_DROPDOWN, CB_GETCURSEL, 0, 0);
127155 const char *url = pvar->versions[cursor].url;
128156 ShellExecuteA(NULL, NULL, url, NULL, NULL, SW_SHOWNORMAL);
129157 break;
130158 }
131- case IDC_COMBO1 | (CBN_SELCHANGE << 16): {
132- int cursor = (int)SendDlgItemMessage(hDlg, IDC_COMBO1, CB_GETCURSEL, 0, 0);
159+ case IDC_VERSION_DROPDOWN | (CBN_SELCHANGE << 16): {
160+ int cursor = (int)SendDlgItemMessage(hDlg, IDC_VERSION_DROPDOWN, CB_GETCURSEL, 0, 0);
133161 SetTexts(hDlg, &pvar->versions[cursor]);
134162 break;
135163 }
@@ -147,9 +175,9 @@ static INT_PTR CALLBACK DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara
147175
148176 static void ShowDialog(HWND hWnd)
149177 {
150- const wchar_t *update_info_url = L"https://osdn.dl.osdn.net/storage/g/t/tt/ttssh2/snapshot/teraterm_version.json";
178+ const wchar_t *update_info_url_default =
179+ L"https://osdn.dl.osdn.net/storage/g/t/tt/ttssh2/snapshot/teraterm_version.json";
151180 const wchar_t *agent_base = L"teraterm_updatechecker";
152- wchar_t buf[256];
153181 wchar_t agent[128];
154182 int result_mb;
155183 char *json_raw_ptr;
@@ -158,20 +186,21 @@ static void ShowDialog(HWND hWnd)
158186 size_t json_size;
159187 char *json_ptr;
160188 const char *UILanguageFile = pvar->ts->UILanguageFile;
161- wchar_t UIMsg[MAX_UIMSG];
162-
163- /* ファイルを取得してもok? */
164- GetI18nStrW("TTXCheckUpdate", "MSG_CHECKUPDATE", UIMsg, _countof(UIMsg),
165- L"Do you want to check update?\n"
166- L" %s\n",
189+ wchar_t update_info_url[MAX_UIMSG];
190+ static const TTMessageBoxInfoW info = {
191+ "TTXCheckUpdate",
192+ NULL, L"Tera Term",
193+ "MSG_CHECKUPDATE", L"Do you want to check update?\n%s" };
194+
195+ /* 更新情報を取得してもok? */
196+ GetI18nStrW("TTXCheckUpdate", "JSON_URL", update_info_url, _countof(update_info_url), update_info_url_default,
167197 UILanguageFile);
168- swprintf(buf, _countof(buf), UIMsg, update_info_url);
169- result_mb = _MessageBoxW(hWnd, buf, L"Tera Term", MB_YESNO | MB_ICONEXCLAMATION);
198+ result_mb = TTMessageBoxW(hWnd, &info, MB_YESNO | MB_ICONEXCLAMATION, UILanguageFile, update_info_url);
170199 if (result_mb == IDNO) {
171200 return;
172201 }
173202
174- /* ファイル取得、'\0'を追加する→ json文字列を作成 */
203+ /* 更新情報取得、'\0'を追加する→ json文字列を作成 */
175204 swprintf(agent, _countof(agent), L"%s_%d", agent_base, pvar->ts->RunningVersion);
176205 result_bool = GetContent(update_info_url, agent, (void**)&json_raw_ptr, &json_raw_size);
177206 if (!result_bool) {
@@ -187,7 +216,7 @@ static void ShowDialog(HWND hWnd)
187216 json_raw_ptr = NULL;
188217 json_ptr[json_size - 1] = '\0';
189218
190- /* jsonをパースする */
219+ /* jsonをパースする, versionsに情報が入る */
191220 pvar->versions = ParseJson(json_ptr, &pvar->versions_count);
192221 if (pvar->versions == NULL) {
193222 _MessageBoxW(hWnd, L"parse error?", L"Tera Term", MB_OK | MB_ICONEXCLAMATION);
@@ -197,7 +226,7 @@ static void ShowDialog(HWND hWnd)
197226 /* ダイアログを出す */
198227 SetDialogFont(pvar->ts->DialogFontName, pvar->ts->DialogFontPoint, pvar->ts->DialogFontCharSet,
199228 pvar->ts->UILanguageFile, "Tera Term", "DLG_TAHOMA_FONT");
200- TTDialogBoxParam(pvar->hInst, MAKEINTRESOURCE(IDD_DIALOG1), hWnd, DlgProc, (LPARAM)pvar);
229+ TTDialogBoxParam(pvar->hInst, MAKEINTRESOURCE(IDD_CHECK_UPDATE_DIALOG), hWnd, DlgProc, (LPARAM)pvar);
201230
202231 /* 終了 */
203232 free(json_ptr);