Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/addsetting.cpp
Parent Directory
| Revision Log
| Patch
| 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}, |
| 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); |
| 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 |
|
|
| |