| 54 |
#include "coding_pp.h" |
#include "coding_pp.h" |
| 55 |
#include "font_pp.h" |
#include "font_pp.h" |
| 56 |
#include "asprintf.h" |
#include "asprintf.h" |
| 57 |
|
#include "win32helper.h" |
| 58 |
|
|
| 59 |
const mouse_cursor_t MouseCursor[] = { |
const mouse_cursor_t MouseCursor[] = { |
| 60 |
{"ARROW", IDC_ARROW}, |
{"ARROW", IDC_ARROW}, |
| 1425 |
// ログディレクトリの選択ダイアログ |
// ログディレクトリの選択ダイアログ |
| 1426 |
{ |
{ |
| 1427 |
wchar_t *title = TTGetLangStrW("Tera Term", "FILEDLG_SELECT_LOGDIR_TITLE", L"Select log folder", ts.UILanguageFile); |
wchar_t *title = TTGetLangStrW("Tera Term", "FILEDLG_SELECT_LOGDIR_TITLE", L"Select log folder", ts.UILanguageFile); |
| 1428 |
wchar_t buf[MAX_PATH]; |
wchar_t *buf; |
| 1429 |
wchar_t buf2[MAX_PATH]; |
hGetDlgItemTextW(m_hWnd, IDC_DEFAULTPATH_EDITOR, &buf); |
| 1430 |
GetDlgItemTextW(IDC_DEFAULTPATH_EDITOR, buf, _countof(buf)); |
wchar_t *buf2; |
| 1431 |
if (doSelectFolderW(GetSafeHwnd(), buf2, _countof(buf2), buf, title)) { |
if (doSelectFolderW(GetSafeHwnd(), buf, title, &buf2)) { |
| 1432 |
SetDlgItemTextW(IDC_DEFAULTPATH_EDITOR, buf2); |
SetDlgItemTextW(IDC_DEFAULTPATH_EDITOR, buf2); |
| 1433 |
|
free(buf2); |
| 1434 |
} |
} |
| 1435 |
|
free(buf); |
| 1436 |
free(title); |
free(title); |
| 1437 |
} |
} |
| 1438 |
|
|
| 1665 |
|
|
| 1666 |
BOOL CCygwinPropPageDlg::OnCommand(WPARAM wParam, LPARAM lParam) |
BOOL CCygwinPropPageDlg::OnCommand(WPARAM wParam, LPARAM lParam) |
| 1667 |
{ |
{ |
|
wchar_t buf[MAX_PATH], buf2[MAX_PATH]; |
|
|
|
|
| 1668 |
switch (wParam) { |
switch (wParam) { |
| 1669 |
case IDC_SELECT_FILE | (BN_CLICKED << 16): |
case IDC_SELECT_FILE | (BN_CLICKED << 16): |
| 1670 |
// Cygwin install ディレクトリの選択ダイアログ |
// Cygwin install ディレクトリの選択ダイアログ |
| 1671 |
wchar_t *title = TTGetLangStrW("Tera Term", "DIRDLG_CYGTERM_DIR_TITLE", L"Select Cygwin directory", ts.UILanguageFile); |
wchar_t *title = TTGetLangStrW("Tera Term", "DIRDLG_CYGTERM_DIR_TITLE", L"Select Cygwin directory", ts.UILanguageFile); |
| 1672 |
GetDlgItemTextW(IDC_CYGWIN_PATH, buf, _countof(buf)); |
wchar_t *buf; |
| 1673 |
if (doSelectFolderW(GetSafeHwnd(), buf2, _countof(buf2), buf, title)) { |
hGetDlgItemTextW(m_hWnd, IDC_CYGWIN_PATH, &buf); |
| 1674 |
SetDlgItemTextW(IDC_CYGWIN_PATH, buf2); |
wchar_t *path; |
| 1675 |
|
if (doSelectFolderW(GetSafeHwnd(), buf, title, &path)) { |
| 1676 |
|
SetDlgItemTextW(IDC_CYGWIN_PATH, path); |
| 1677 |
|
free(path); |
| 1678 |
} |
} |
| 1679 |
|
free(buf); |
| 1680 |
free(title); |
free(title); |
| 1681 |
return TRUE; |
return TRUE; |
| 1682 |
} |
} |