Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 88 |
#endif |
#endif |
| 89 |
|
|
| 90 |
#ifdef I18N |
#ifdef I18N |
| 91 |
|
static HFONT DlgHostFont; |
| 92 |
static HFONT DlgAboutFont; |
static HFONT DlgAboutFont; |
| 93 |
|
static HFONT DlgSetupFont; |
| 94 |
|
static HFONT DlgKeygenFont; |
| 95 |
#endif |
#endif |
| 96 |
|
|
| 97 |
static TInstVar FAR *pvar; |
static TInstVar FAR *pvar; |
| 900 |
char TempHost[HostNameMaxLength + 1]; |
char TempHost[HostNameMaxLength + 1]; |
| 901 |
WORD i, j, w; |
WORD i, j, w; |
| 902 |
BOOL Ok; |
BOOL Ok; |
| 903 |
|
#ifdef I18N |
| 904 |
|
LOGFONT logfont; |
| 905 |
|
HFONT font; |
| 906 |
|
#endif |
| 907 |
|
|
| 908 |
GET_VAR(); |
GET_VAR(); |
| 909 |
|
|
| 1081 |
SetFocus(hwnd); |
SetFocus(hwnd); |
| 1082 |
} |
} |
| 1083 |
|
|
| 1084 |
|
#ifdef I18N |
| 1085 |
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
| 1086 |
|
GetObject(font, sizeof(LOGFONT), &logfont); |
| 1087 |
|
if (UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, &logfont, &DlgHostFont, pvar)) { |
| 1088 |
|
SendDlgItemMessage(dlg, IDC_HOSTTCPIP, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1089 |
|
SendDlgItemMessage(dlg, IDC_HOSTNAMELABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1090 |
|
SendDlgItemMessage(dlg, IDC_HISTORY, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1091 |
|
SendDlgItemMessage(dlg, IDC_SERVICELABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1092 |
|
SendDlgItemMessage(dlg, IDC_HOSTTELNET, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1093 |
|
SendDlgItemMessage(dlg, IDC_HOSTSSH, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1094 |
|
SendDlgItemMessage(dlg, IDC_HOSTOTHER, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1095 |
|
SendDlgItemMessage(dlg, IDC_HOSTTCPPORTLABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1096 |
|
SendDlgItemMessage(dlg, IDC_SSH_VERSION_LABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1097 |
|
SendDlgItemMessage(dlg, IDC_HOSTTCPPROTOCOLLABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1098 |
|
SendDlgItemMessage(dlg, IDC_HOSTSERIAL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1099 |
|
SendDlgItemMessage(dlg, IDC_HOSTCOMLABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1100 |
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1101 |
|
SendDlgItemMessage(dlg, IDCANCEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1102 |
|
SendDlgItemMessage(dlg, IDC_HOSTHELP, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
| 1103 |
|
} |
| 1104 |
|
else { |
| 1105 |
|
DlgHostFont = NULL; |
| 1106 |
|
} |
| 1107 |
|
#endif |
| 1108 |
|
|
| 1109 |
// SetFocus()でフォーカスをあわせた場合、FALSEを返す必要がある。 |
// SetFocus()でフォーカスをあわせた場合、FALSEを返す必要がある。 |
| 1110 |
// TRUEを返すと、TABSTOP対象の一番はじめのコントロールが選ばれる。 |
// TRUEを返すと、TABSTOP対象の一番はじめのコントロールが選ばれる。 |
| 1111 |
// (2004.11.23 yutaka) |
// (2004.11.23 yutaka) |
| 1187 |
} |
} |
| 1188 |
} |
} |
| 1189 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
| 1190 |
|
|
| 1191 |
|
#ifdef I18N |
| 1192 |
|
if (DlgSetupFont != NULL) { |
| 1193 |
|
DeleteObject(DlgSetupFont); |
| 1194 |
|
} |
| 1195 |
|
#endif |
| 1196 |
|
|
| 1197 |
return TRUE; |
return TRUE; |
| 1198 |
|
|
| 1199 |
case IDCANCEL: |
case IDCANCEL: |
| 1200 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
| 1201 |
|
|
| 1202 |
|
#ifdef I18N |
| 1203 |
|
if (DlgSetupFont != NULL) { |
| 1204 |
|
DeleteObject(DlgSetupFont); |
| 1205 |
|
} |
| 1206 |
|
#endif |
| 1207 |
|
|
| 1208 |
return TRUE; |
return TRUE; |
| 1209 |
|
|
| 1210 |
case IDC_HOSTTCPIP: |
case IDC_HOSTTCPIP: |
| 3663 |
|
|
| 3664 |
/* |
/* |
| 3665 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 3666 |
|
* Revision 1.47 2006/11/23 02:19:30 maya |
| 3667 |
|
* 表示メッセージを言語ファイルから読み込みむコードの作成を開始した。 |
| 3668 |
|
* |
| 3669 |
* Revision 1.46 2006/11/14 09:00:40 maya |
* Revision 1.46 2006/11/14 09:00:40 maya |
| 3670 |
* エラーメッセージを修正した。 |
* エラーメッセージを修正した。 |
| 3671 |
* |
* |
|
|
Legend:
| Removed from v.2937 |
|
| changed lines |
| |
Added in v.2943 |
|
|
| |