Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpcmn/ttcmn.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8576 by zmatsuo, Fri Mar 6 15:21:54 2020 UTC revision 8616 by zmatsuo, Mon Mar 23 15:54:26 2020 UTC
# Line 140  void WINAPI RestartTeraTerm(HWND hwnd, P Line 140  void WINAPI RestartTeraTerm(HWND hwnd, P
140          char path[1024];          char path[1024];
141          STARTUPINFO si;          STARTUPINFO si;
142          PROCESS_INFORMATION pi;          PROCESS_INFORMATION pi;
         char uimsg[MAX_UIMSG];  
143          int ret;          int ret;
144    
145          get_lang_msg("MSG_TT_TAKE_EFFECT", uimsg, sizeof(uimsg),          static const TTMessageBoxInfoW info = {
146                  "This option takes effect the next time a session is started.\n"                  "Tera Term",
147                  "Are you sure that you want to relaunch Tera Term?"                  NULL, L"Tera Term: Configuration Warning",
148                  , ts->UILanguageFile);                  "MSG_TT_TAKE_EFFECT",
149          ret = MessageBox(hwnd, uimsg, "Tera Term: Configuration Warning", MB_YESNO | MB_ICONEXCLAMATION | MB_DEFBUTTON2);                  L"This option takes effect the next time a session is started.\n"
150                    L"Are you sure that you want to relaunch Tera Term?"
151            };
152            ret = TTMessageBoxW(hwnd, &info, MB_YESNO | MB_ICONEXCLAMATION | MB_DEFBUTTON2, ts->UILanguageFile);
153          if (ret != IDYES)          if (ret != IDYES)
154                  return;                  return;
155    
# Line 1184  void WINAPI OpenHelp(UINT Command, DWORD Line 1186  void WINAPI OpenHelp(UINT Command, DWORD
1186          HWin = GetDesktopWindow();          HWin = GetDesktopWindow();
1187          if (_HtmlHelpW(HWin, HelpFN, Command, Data) == NULL) {          if (_HtmlHelpW(HWin, HelpFN, Command, Data) == NULL) {
1188                  // ヘルプが開けなかった                  // ヘルプが開けなかった
1189                  wchar_t buf[MAX_PATH];                  static const TTMessageBoxInfoW info = {
1190                  get_lang_msgW("MSG_OPENHELP_ERROR", uimsg, _countof(uimsg),                          "Tera Term",
1191                                            L"Can't open HTML help file(%s).", UILanguageFile);                          NULL, L"Tera Term: HTML help",
1192                  _snwprintf_s(buf, _countof(buf), _TRUNCATE, uimsg, HelpFN);                          "MSG_OPENHELP_ERROR", L"Can't open HTML help file(%s)." };
1193                  _MessageBoxW(HWin, buf, L"Tera Term: HTML help", MB_OK | MB_ICONERROR);                  TTMessageBoxW(HWin, &info, MB_OK | MB_ICONERROR, UILanguageFile, HelpFN);
1194                  return;                  return;
1195          }          }
1196  }  }

Legend:
Removed from v.8576  
changed lines
  Added in v.8616

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26