Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 1194 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
| 1195 |
|
|
| 1196 |
#ifdef I18N |
#ifdef I18N |
| 1197 |
if (DlgSetupFont != NULL) { |
if (DlgHostFont != NULL) { |
| 1198 |
DeleteObject(DlgSetupFont); |
DeleteObject(DlgHostFont); |
| 1199 |
} |
} |
| 1200 |
#endif |
#endif |
| 1201 |
|
|
| 1205 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
| 1206 |
|
|
| 1207 |
#ifdef I18N |
#ifdef I18N |
| 1208 |
if (DlgSetupFont != NULL) { |
if (DlgHostFont != NULL) { |
| 1209 |
DeleteObject(DlgSetupFont); |
DeleteObject(DlgHostFont); |
| 1210 |
} |
} |
| 1211 |
#endif |
#endif |
| 1212 |
|
|
| 2331 |
static BOOL CALLBACK TTXSetupDlg(HWND dlg, UINT msg, WPARAM wParam, |
static BOOL CALLBACK TTXSetupDlg(HWND dlg, UINT msg, WPARAM wParam, |
| 2332 |
LPARAM lParam) |
LPARAM lParam) |
| 2333 |
{ |
{ |
| 2334 |
|
#ifdef I18N |
| 2335 |
|
LOGFONT logfont; |
| 2336 |
|
HFONT font; |
| 2337 |
|
#endif |
| 2338 |
switch (msg) { |
switch (msg) { |
| 2339 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
| 2340 |
SetWindowLong(dlg, DWL_USER, lParam); |
SetWindowLong(dlg, DWL_USER, lParam); |
| 2341 |
init_setup_dlg((PTInstVar) lParam, dlg); |
init_setup_dlg((PTInstVar) lParam, dlg); |
| 2342 |
|
#ifdef I18N |
| 2343 |
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
| 2344 |
|
GetObject(font, sizeof(LOGFONT), &logfont); |
| 2345 |
|
if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgSetupFont, pvar)) { |
| 2346 |
|
SendDlgItemMessage(dlg, IDC_COMPRESSLABEL, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2347 |
|
SendDlgItemMessage(dlg, IDC_CIPHERORDER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2348 |
|
SendDlgItemMessage(dlg, IDC_SSHCIPHERPREFS, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2349 |
|
SendDlgItemMessage(dlg, IDC_SSHMOVECIPHERUP, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2350 |
|
SendDlgItemMessage(dlg, IDC_SSHMOVECIPHERDOWN, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2351 |
|
SendDlgItemMessage(dlg, IDC_CHOOSEREADWRITEFILE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2352 |
|
SendDlgItemMessage(dlg, IDC_READWRITEFILENAME, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2353 |
|
SendDlgItemMessage(dlg, IDC_CHOOSEREADONLYFILE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2354 |
|
SendDlgItemMessage(dlg, IDC_READONLYFILENAME, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2355 |
|
SendDlgItemMessage(dlg, IDC_COMPRESSNONE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2356 |
|
SendDlgItemMessage(dlg, IDC_COMPRESSHIGH, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2357 |
|
SendDlgItemMessage(dlg, IDC_NOTICEBANNER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2358 |
|
SendDlgItemMessage(dlg, IDC_KNOWNHOSTS, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2359 |
|
SendDlgItemMessage(dlg, IDC_HEARTBEATLABEL, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2360 |
|
SendDlgItemMessage(dlg, IDC_HEARTBEAT_EDIT, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2361 |
|
SendDlgItemMessage(dlg, IDC_HEARTBEATLABEL2, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2362 |
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2363 |
|
SendDlgItemMessage(dlg, IDCANCEL, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
| 2364 |
|
} |
| 2365 |
|
else { |
| 2366 |
|
DlgSetupFont = NULL; |
| 2367 |
|
} |
| 2368 |
|
#endif |
| 2369 |
return TRUE; |
return TRUE; |
| 2370 |
case WM_COMMAND: |
case WM_COMMAND: |
| 2371 |
switch (LOWORD(wParam)) { |
switch (LOWORD(wParam)) { |
| 2373 |
complete_setup_dlg((PTInstVar) GetWindowLong(dlg, DWL_USER), |
complete_setup_dlg((PTInstVar) GetWindowLong(dlg, DWL_USER), |
| 2374 |
dlg); |
dlg); |
| 2375 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
| 2376 |
|
#ifdef I18N |
| 2377 |
|
if (DlgSetupFont != NULL) { |
| 2378 |
|
DeleteObject(DlgSetupFont); |
| 2379 |
|
} |
| 2380 |
|
#endif |
| 2381 |
return TRUE; |
return TRUE; |
| 2382 |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
| 2383 |
UI things can send this message */ |
UI things can send this message */ |
| 2384 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
| 2385 |
|
#ifdef I18N |
| 2386 |
|
if (DlgSetupFont != NULL) { |
| 2387 |
|
DeleteObject(DlgSetupFont); |
| 2388 |
|
} |
| 2389 |
|
#endif |
| 2390 |
return TRUE; |
return TRUE; |
| 2391 |
case IDC_SSHMOVECIPHERUP: |
case IDC_SSHMOVECIPHERUP: |
| 2392 |
move_cur_sel_delta(GetDlgItem(dlg, IDC_SSHCIPHERPREFS), -1); |
move_cur_sel_delta(GetDlgItem(dlg, IDC_SSHCIPHERPREFS), -1); |
| 2813 |
static enum hostkey_type key_type; |
static enum hostkey_type key_type; |
| 2814 |
#ifdef I18N |
#ifdef I18N |
| 2815 |
char uimsg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG]; |
| 2816 |
|
LOGFONT logfont; |
| 2817 |
|
HFONT font; |
| 2818 |
#endif |
#endif |
| 2819 |
|
|
| 2820 |
switch (msg) { |
switch (msg) { |
| 2852 |
GetDlgItemText(dlg, IDCANCEL, pvar->ts->UIMsg, sizeof(pvar->ts->UIMsg)); |
GetDlgItemText(dlg, IDCANCEL, pvar->ts->UIMsg, sizeof(pvar->ts->UIMsg)); |
| 2853 |
UTIL_get_lang_msg("BTN_CANCEL", pvar); |
UTIL_get_lang_msg("BTN_CANCEL", pvar); |
| 2854 |
SetDlgItemText(dlg, IDCANCEL, pvar->ts->UIMsg); |
SetDlgItemText(dlg, IDCANCEL, pvar->ts->UIMsg); |
| 2855 |
|
|
| 2856 |
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
| 2857 |
|
GetObject(font, sizeof(LOGFONT), &logfont); |
| 2858 |
|
if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgKeygenFont, pvar)) { |
| 2859 |
|
SendDlgItemMessage(dlg, IDC_KEYTYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2860 |
|
SendDlgItemMessage(dlg, IDC_RSA1_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2861 |
|
SendDlgItemMessage(dlg, IDC_RSA_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2862 |
|
SendDlgItemMessage(dlg, IDC_DSA_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2863 |
|
SendDlgItemMessage(dlg, IDC_KEY_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2864 |
|
SendDlgItemMessage(dlg, IDC_CONFIRM_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2865 |
|
SendDlgItemMessage(dlg, IDC_KEY_EDIT, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2866 |
|
SendDlgItemMessage(dlg, IDC_CONFIRM_EDIT, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2867 |
|
SendDlgItemMessage(dlg, IDC_SAVE_PUBLIC_KEY, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2868 |
|
SendDlgItemMessage(dlg, IDC_SAVE_PRIVATE_KEY, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2869 |
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2870 |
|
SendDlgItemMessage(dlg, IDCANCEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
| 2871 |
|
} |
| 2872 |
|
else { |
| 2873 |
|
DlgHostFont = NULL; |
| 2874 |
|
} |
| 2875 |
#endif |
#endif |
| 2876 |
|
|
| 2877 |
// default key type |
// default key type |
| 2915 |
// don't forget to free SSH resource! |
// don't forget to free SSH resource! |
| 2916 |
free_ssh_key(); |
free_ssh_key(); |
| 2917 |
EndDialog(dlg, 0); // dialog close |
EndDialog(dlg, 0); // dialog close |
| 2918 |
|
#ifdef I18N |
| 2919 |
|
if (DlgKeygenFont != NULL) { |
| 2920 |
|
DeleteObject(DlgKeygenFont); |
| 2921 |
|
} |
| 2922 |
|
#endif |
| 2923 |
return TRUE; |
return TRUE; |
| 2924 |
|
|
| 2925 |
// if radio button pressed... |
// if radio button pressed... |
| 3736 |
|
|
| 3737 |
/* |
/* |
| 3738 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 3739 |
|
* Revision 1.50 2007/01/04 08:36:42 maya |
| 3740 |
|
* フォントを変更する部分を追加した。 |
| 3741 |
|
* |
| 3742 |
* Revision 1.49 2006/12/06 14:31:13 maya |
* Revision 1.49 2006/12/06 14:31:13 maya |
| 3743 |
* 表示メッセージの読み込み対応 |
* 表示メッセージの読み込み対応 |
| 3744 |
* |
* |
|
|
Legend:
| Removed from v.2946 |
|
| changed lines |
| |
Added in v.2947 |
|
|
| |