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 9988 by zmatsuo, Sat Jun 4 13:17:12 2022 UTC revision 10009 by nmaya, Thu Jun 23 23:59:07 2022 UTC
# Line 270  BOOL WINAPI StartTeraTerm(PTTSet ts) Line 270  BOOL WINAPI StartTeraTerm(PTTSet ts)
270          else {          else {
271                  return FALSE;                  return FALSE;
272          }          }
273    
274            ts->PluginVTIconInstance = NULL;
275            ts->PluginVTIconID = 0;
276  }  }
277    
278  // 設定ファイルをディスクに保存し、Tera Term本体を再起動する。  // 設定ファイルをディスクに保存し、Tera Term本体を再起動する。
# Line 611  void WINAPI UndoAllWin(void) { Line 614  void WINAPI UndoAllWin(void) {
614          }          }
615  }  }
616    
 void WINAPI OpenHelp(UINT Command, DWORD Data, char *UILanguageFile)  
 {  
         wchar_t Temp[MAX_PATH];  
         HWND HWin;  
         wchar_t *HelpFN;  
         wchar_t uimsg[MAX_UIMSG];  
         wchar_t *HomeDirW;  
   
         /* Get home directory  TODO ts.HomeDirW へ切り替え */  
         if (GetModuleFileNameW(NULL,Temp,_countof(Temp)) == 0) {  
                 return;  
         }  
         HomeDirW = ExtractDirNameW(Temp);  
         get_lang_msgW("HELPFILE", uimsg, _countof(uimsg), L"teraterm.chm", UILanguageFile);  
         aswprintf(&HelpFN, L"%s\\%s", HomeDirW, uimsg);  
         free(HomeDirW);  
   
         // ヘルプのオーナーは常にデスクトップになる (2007.5.12 maya)  
         HWin = GetDesktopWindow();  
         if (_HtmlHelpW(HWin, HelpFN, Command, Data) == NULL) {  
                 // ヘルプが開けなかった  
                 static const TTMessageBoxInfoW info = {  
                         "Tera Term",  
                         NULL, L"Tera Term: HTML help",  
                         "MSG_OPENHELP_ERROR", L"Can't open HTML help file(%s).",  
                         MB_OK | MB_ICONERROR };  
                 TTMessageBoxA(HWin, &info, UILanguageFile, HelpFN);  
         }  
         free(HelpFN);  
 }  
   
617  HWND WINAPI GetNthWin(int n)  HWND WINAPI GetNthWin(int n)
618  {  {
619          if (n<pm->NWin) {          if (n<pm->NWin) {

Legend:
Removed from v.9988  
changed lines
  Added in v.10009

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