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 9230 by zmatsuo, Mon May 3 15:04:42 2021 UTC revision 9324 by zmatsuo, Tue Jun 29 15:20:20 2021 UTC
# Line 51  Line 51 
51  #include "tipwin.h"  #include "tipwin.h"
52  #include "i18n.h"  #include "i18n.h"
53  #include "codeconv.h"  #include "codeconv.h"
 #include "layer_for_unicode.h"  
54  #include "coding_pp.h"  #include "coding_pp.h"
55  #include "font_pp.h"  #include "font_pp.h"
56    
# Line 530  BOOL CCopypastePropPageDlg::OnCommand(WP Line 529  BOOL CCopypastePropPageDlg::OnCommand(WP
529                                  ofn.nMaxFile = _countof(fileW);                                  ofn.nMaxFile = _countof(fileW);
530                                  ofn.lpstrTitle = TTGetLangStrW("Tera Term", "FILEDLG_SELECT_CONFIRM_STRING_APP_TITLE", L"Choose a file including strings for ConfirmChangePaste", ts.UILanguageFile);                                  ofn.lpstrTitle = TTGetLangStrW("Tera Term", "FILEDLG_SELECT_CONFIRM_STRING_APP_TITLE", L"Choose a file including strings for ConfirmChangePaste", ts.UILanguageFile);
531                                  ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;                                  ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
532                                  BOOL ok = _GetOpenFileNameW(&ofn);                                  BOOL ok = GetOpenFileNameW(&ofn);
533                                  if (ok) {                                  if (ok) {
534                                          char *file = ToCharW(fileW);                                          char *file = ToCharW(fileW);
535                                          strncpy_s(ts.ConfirmChangePasteStringFile, sizeof(ts.ConfirmChangePasteStringFile), file, _TRUNCATE);                                          strncpy_s(ts.ConfirmChangePasteStringFile, sizeof(ts.ConfirmChangePasteStringFile), file, _TRUNCATE);
# Line 953  BOOL CVisualPropPageDlg::OnCommand(WPARA Line 952  BOOL CVisualPropPageDlg::OnCommand(WPARA
952                                  ofn.nMaxFile = _countof(szFile);                                  ofn.nMaxFile = _countof(szFile);
953                                  ofn.lpstrTitle = L"select image file";                                  ofn.lpstrTitle = L"select image file";
954                                  ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;                                  ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
955                                  BOOL ok = _GetOpenFileNameW(&ofn);                                  BOOL ok = GetOpenFileNameW(&ofn);
956                                  if (ok) {                                  if (ok) {
957                                          SetDlgItemTextW(IDC_BGIMG_EDIT, szFile);                                          SetDlgItemTextW(IDC_BGIMG_EDIT, szFile);
958                                  }                                  }
# Line 1406  BOOL CLogPropPageDlg::OnCommand(WPARAM w Line 1405  BOOL CLogPropPageDlg::OnCommand(WPARAM w
1405                                  ofn.nMaxFile = _countof(fileW);                                  ofn.nMaxFile = _countof(fileW);
1406                                  ofn.lpstrTitle = TTGetLangStrW("Tera Term", "FILEDLG_SELECT_LOGVIEW_APP_TITLE", L"Choose a executing file with launching logging file", ts.UILanguageFile);                                  ofn.lpstrTitle = TTGetLangStrW("Tera Term", "FILEDLG_SELECT_LOGVIEW_APP_TITLE", L"Choose a executing file with launching logging file", ts.UILanguageFile);
1407                                  ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;                                  ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
1408                                  BOOL ok = _GetOpenFileNameW(&ofn);                                  BOOL ok = GetOpenFileNameW(&ofn);
1409                                  if (ok) {                                  if (ok) {
1410                                          char *file = ToCharW(fileW);                                          char *file = ToCharW(fileW);
1411                                          strncpy_s(ts.ViewlogEditor, sizeof(ts.ViewlogEditor), file, _TRUNCATE);                                          strncpy_s(ts.ViewlogEditor, sizeof(ts.ViewlogEditor), file, _TRUNCATE);
# Line 1797  INT_PTR CAddSettingPropSheetDlg::DoModal Line 1796  INT_PTR CAddSettingPropSheetDlg::DoModal
1796  {  {
1797          ghInstance = m_hInst;          ghInstance = m_hInst;
1798          gTTCPS = this;          gTTCPS = this;
1799          return _PropertySheetW(&m_psh);          return PropertySheetW(&m_psh);
1800  }  }

Legend:
Removed from v.9230  
changed lines
  Added in v.9324

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