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 9354 by zmatsuo, Tue Aug 10 14:42:28 2021 UTC revision 9355 by zmatsuo, Fri Aug 13 04:33:14 2021 UTC
# Line 53  Line 53 
53  #include "codeconv.h"  #include "codeconv.h"
54  #include "coding_pp.h"  #include "coding_pp.h"
55  #include "font_pp.h"  #include "font_pp.h"
56    #include "asprintf.h"
57    
58  const mouse_cursor_t MouseCursor[] = {  const mouse_cursor_t MouseCursor[] = {
59          {"ARROW", IDC_ARROW},          {"ARROW", IDC_ARROW},
# Line 849  void CVisualPropPageDlg::OnHScroll(UINT Line 850  void CVisualPropPageDlg::OnHScroll(UINT
850    
851  static void OpacityTooltip(CTipWin* tip, HWND hDlg, int trackbar, int pos, const char *UILanguageFile)  static void OpacityTooltip(CTipWin* tip, HWND hDlg, int trackbar, int pos, const char *UILanguageFile)
852  {  {
853          wchar_t uimsg[MAX_UIMSG];          wchar_t *uimsg;
854          get_lang_msgW("TOOLTIP_TITLEBAR_OPACITY", uimsg, _countof(uimsg), L"Opacity %.1f %%", ts.UILanguageFile);          GetI18nStrWA("Tera Term", "TOOLTIP_TITLEBAR_OPACITY", L"Opacity %.1f %%", ts.UILanguageFile, &uimsg);
855          wchar_t tipbuf[MAX_UIMSG];          wchar_t *tipbuf;
856          swprintf_s(tipbuf, _countof(tipbuf), uimsg, (pos / 255.0) * 100);          aswprintf(&tipbuf, uimsg, (pos / 255.0) * 100);
857          RECT rc;          RECT rc;
858          ::GetWindowRect(::GetDlgItem(hDlg, trackbar), &rc);          ::GetWindowRect(::GetDlgItem(hDlg, trackbar), &rc);
859          tip->SetText(tipbuf);          tip->SetText(tipbuf);
# Line 861  static void OpacityTooltip(CTipWin* tip, Line 862  static void OpacityTooltip(CTipWin* tip,
862          if (! tip->IsVisible()) {          if (! tip->IsVisible()) {
863                  tip->SetVisible(TRUE);                  tip->SetVisible(TRUE);
864          }          }
865            free(tipbuf);
866            free(uimsg);
867  }  }
868    
869  BOOL CVisualPropPageDlg::OnCommand(WPARAM wParam, LPARAM lParam)  BOOL CVisualPropPageDlg::OnCommand(WPARAM wParam, LPARAM lParam)

Legend:
Removed from v.9354  
changed lines
  Added in v.9355

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