Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/addsetting.cpp
Parent Directory
| Revision Log
| Patch
| 819 |
} |
} |
| 820 |
} |
} |
| 821 |
|
|
| 822 |
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 wchar_t *UILanguageFile) |
| 823 |
{ |
{ |
| 824 |
wchar_t *uimsg; |
wchar_t *uimsg; |
| 825 |
GetI18nStrWA("Tera Term", "TOOLTIP_TITLEBAR_OPACITY", L"Opacity %.1f %%", ts.UILanguageFile, &uimsg); |
GetI18nStrWW("Tera Term", "TOOLTIP_TITLEBAR_OPACITY", L"Opacity %.1f %%", UILanguageFile, &uimsg); |
| 826 |
wchar_t *tipbuf; |
wchar_t *tipbuf; |
| 827 |
aswprintf(&tipbuf, uimsg, (pos / 255.0) * 100); |
aswprintf(&tipbuf, uimsg, (pos / 255.0) * 100); |
| 828 |
RECT rc; |
RECT rc; |
| 945 |
int r, g, b; |
int r, g, b; |
| 946 |
|
|
| 947 |
sel = GetCurSel(IDC_ANSI_COLOR); |
sel = GetCurSel(IDC_ANSI_COLOR); |
| 948 |
if (sel < 0 && sel > sizeof(ts.ANSIColor)-1) { |
if (sel < 0 || sel > _countof(ts.ANSIColor)-1) { |
| 949 |
return TRUE; |
return TRUE; |
| 950 |
} |
} |
| 951 |
|
|
| 998 |
SetDlgItemNum(IDC_ALPHA_BLEND_ACTIVE, pos); |
SetDlgItemNum(IDC_ALPHA_BLEND_ACTIVE, pos); |
| 999 |
} |
} |
| 1000 |
SendDlgItemMessage(IDC_ALPHA_BLEND_ACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
SendDlgItemMessage(IDC_ALPHA_BLEND_ACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
| 1001 |
OpacityTooltip(TipWin, m_hWnd, IDC_ALPHA_BLEND_ACTIVE, pos, ts.UILanguageFile); |
OpacityTooltip(TipWin, m_hWnd, IDC_ALPHA_BLEND_ACTIVE, pos, ts.UILanguageFileW); |
| 1002 |
return TRUE; |
return TRUE; |
| 1003 |
} |
} |
| 1004 |
case IDC_ALPHA_BLEND_INACTIVE | (EN_CHANGE << 16): |
case IDC_ALPHA_BLEND_INACTIVE | (EN_CHANGE << 16): |
| 1014 |
SetDlgItemNum(IDC_ALPHA_BLEND_INACTIVE, pos); |
SetDlgItemNum(IDC_ALPHA_BLEND_INACTIVE, pos); |
| 1015 |
} |
} |
| 1016 |
SendDlgItemMessage(IDC_ALPHA_BLEND_INACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
SendDlgItemMessage(IDC_ALPHA_BLEND_INACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
| 1017 |
OpacityTooltip(TipWin, m_hWnd, IDC_ALPHA_BLEND_INACTIVE, pos, ts.UILanguageFile); |
OpacityTooltip(TipWin, m_hWnd, IDC_ALPHA_BLEND_INACTIVE, pos, ts.UILanguageFileW); |
| 1018 |
return TRUE; |
return TRUE; |
| 1019 |
} |
} |
| 1020 |
} |
} |
|
|
Legend:
| Removed from v.10175 |
|
| changed lines |
| |
Added in v.10176 |
|
|
| |