Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/addsetting.cpp

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

revision 10292 by zmatsuo, Sat Oct 1 04:11:59 2022 UTC revision 10293 by zmatsuo, Sat Oct 1 16:37:03 2022 UTC
# Line 33  Line 33 
33  #include <stdio.h>  #include <stdio.h>
34  #include <windows.h>  #include <windows.h>
35  #include <commctrl.h>  #include <commctrl.h>
36  #include <dwmapi.h>  //#include <dwmapi.h>   // compat_win.h 内の定義を使用するため include しない
37  #define _CRTDBG_MAP_ALLOC  #define _CRTDBG_MAP_ALLOC
38  #include <stdlib.h>  #include <stdlib.h>
39  #include <crtdbg.h>  #include <crtdbg.h>
# Line 712  void CVisualPropPageDlg::OnInitDialog() Line 712  void CVisualPropPageDlg::OnInitDialog()
712    
713          // (2) theme file          // (2) theme file
714          {          {
715                  SendDlgItemMessageA(IDC_THEME_FILE, CB_ADDSTRING, 0, (LPARAM)"使用しない");                  // TODO i18n
716                  SendDlgItemMessageA(IDC_THEME_FILE, CB_ADDSTRING, 1, (LPARAM)"固定テーマ(テーマファイル指定)");                  const static I18nTextInfo theme_select[] = {
717                  SendDlgItemMessageA(IDC_THEME_FILE, CB_ADDSTRING, 2, (LPARAM)"ランダムテーマ");  #if defined(_MSC_VER)
718                            { NULL, L"使用しない" },
719                            { NULL, L"固定テーマ(テーマファイル指定)" },
720                            { NULL, L"ランダムテーマ" },
721    #else
722                            { NULL, L"no use" },
723                            { NULL, L"fixed theme file" },
724                            { NULL, L"random theme file" },
725    #endif
726                    };
727    
728                  int sel = ts.EtermLookfeel.BGEnable;                  int sel = ts.EtermLookfeel.BGEnable;
729                  if (sel < 0) sel = 0;                  if (sel < 0) sel = 0;
730                  if (sel > 2) sel = 2;                  if (sel > 2) sel = 2;
731                  SendDlgItemMessageA(IDC_THEME_FILE, CB_SETCURSEL, sel, 0);                  SetI18nListW("Tera Term", m_hWnd, IDC_THEME_FILE, theme_select, _countof(theme_select),
732                                             ts.UILanguageFileW, sel);
733                  BOOL enable = (sel == 1) ? TRUE : FALSE;                  BOOL enable = (sel == 1) ? TRUE : FALSE;
734                  EnableDlgItem(IDC_THEME_EDIT, enable);                  EnableDlgItem(IDC_THEME_EDIT, enable);
735                  EnableDlgItem(IDC_THEME_BUTTON, enable);                  EnableDlgItem(IDC_THEME_BUTTON, enable);

Legend:
Removed from v.10292  
changed lines
  Added in v.10293

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