Tera Termの個人的な作業用リポジトリ
Revisión | 5ae0e7e3b539e60f6288075cae069696835c3709 (tree) |
---|---|
Tiempo | 2023-03-06 22:30:48 |
Autor | zmatsuo <zmatsuo@user...> |
Commiter | zmatsuo |
マクロ終了メッセージ表示をUnicode化
- MessageBox() -> TTMessageBoxW()
- Unicode版lngファイルを参照
git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@10629 f5f01b69-1e22-0410-acbf-894ab4bd6246
@@ -274,11 +274,12 @@ void BringupWindow(HWND hWnd) | ||
274 | 274 | } |
275 | 275 | } |
276 | 276 | |
277 | -int MessageBoxHaltScript(HWND hWnd)//, const char *UILanguageFile) | |
277 | +int MessageBoxHaltScript(HWND hWnd) | |
278 | 278 | { |
279 | - char uimsg[MAX_UIMSG]; | |
280 | - char uimsg2[MAX_UIMSG]; | |
281 | - get_lang_msg("MSG_MACRO_CONF", uimsg, sizeof(uimsg), "MACRO: confirmation", UILanguageFile); | |
282 | - get_lang_msg("MSG_MACRO_HALT_SCRIPT", uimsg2, sizeof(uimsg2), "Are you sure that you want to halt this macro script?", UILanguageFile); | |
283 | - return MessageBox(hWnd, uimsg2, uimsg, MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2); | |
279 | + static const TTMessageBoxInfoW info = { | |
280 | + "Tera Term", | |
281 | + "MSG_MACRO_CONF", L"MACRO: confirmation", | |
282 | + "MSG_MACRO_HALT_SCRIPT", L"Are you sure that you want to halt this macro script?", | |
283 | + MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2 }; | |
284 | + return TTMessageBoxW(hWnd, &info, UILanguageFileW); | |
284 | 285 | } |