| 7408 |
char new_passwd[PASSWD_MAXLEN]; |
char new_passwd[PASSWD_MAXLEN]; |
| 7409 |
char retype_passwd[PASSWD_MAXLEN]; |
char retype_passwd[PASSWD_MAXLEN]; |
| 7410 |
static struct change_password *cp; |
static struct change_password *cp; |
|
// LOGFONT logfont; |
|
|
// HFONT font; |
|
|
// static HFONT DlgChgPassFont; |
|
| 7411 |
char uimsg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG]; |
| 7412 |
static PTInstVar pvar; |
static PTInstVar pvar; |
| 7413 |
|
|
|
|
|
| 7414 |
switch (msg) { |
switch (msg) { |
| 7415 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
| 7416 |
cp = (struct change_password *)lParam; |
cp = (struct change_password *)lParam; |
| 7417 |
pvar = cp->pvar; |
pvar = cp->pvar; |
| 7418 |
|
|
|
#if 0 |
|
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
|
|
GetObject(font, sizeof(LOGFONT), &logfont); |
|
|
|
|
|
if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgChgPassFont, pvar)) { |
|
|
SendDlgItemMessage(dlg, IDC_OLD_PASSWD_LABEL, WM_SETFONT, (WPARAM)DlgChgPassFont, MAKELPARAM(TRUE,0)); |
|
|
} |
|
|
else { |
|
|
DlgChgPassFont = NULL; |
|
|
} |
|
|
#endif |
|
|
|
|
| 7419 |
GetWindowText(dlg, uimsg, sizeof(uimsg)); |
GetWindowText(dlg, uimsg, sizeof(uimsg)); |
| 7420 |
UTIL_get_lang_msg("DLG_PASSCHG_TITLE", pvar, uimsg); |
UTIL_get_lang_msg("DLG_PASSCHG_TITLE", pvar, uimsg); |
| 7421 |
SetWindowText(dlg, pvar->ts->UIMsg); |
SetWindowText(dlg, pvar->ts->UIMsg); |
| 7466 |
strncpy_s(cp->new_passwd, sizeof(cp->new_passwd), new_passwd, _TRUNCATE); |
strncpy_s(cp->new_passwd, sizeof(cp->new_passwd), new_passwd, _TRUNCATE); |
| 7467 |
|
|
| 7468 |
EndDialog(dlg, 1); // dialog close |
EndDialog(dlg, 1); // dialog close |
|
#if 0 |
|
|
if (DlgChgPassFont != NULL) { |
|
|
DeleteObject(DlgChgPassFont); |
|
|
DlgChgPassFont = NULL; |
|
|
} |
|
|
#endif |
|
| 7469 |
return TRUE; |
return TRUE; |
| 7470 |
|
|
| 7471 |
case IDCANCEL: |
case IDCANCEL: |
| 7472 |
// 接続を切る |
// 接続を切る |
| 7473 |
notify_closed_connection(pvar, "authentication cancelled"); |
notify_closed_connection(pvar, "authentication cancelled"); |
| 7474 |
EndDialog(dlg, 0); // dialog close |
EndDialog(dlg, 0); // dialog close |
|
#if 0 |
|
|
if (DlgChgPassFont != NULL) { |
|
|
DeleteObject(DlgChgPassFont); |
|
|
DlgChgPassFont = NULL; |
|
|
} |
|
|
#endif |
|
| 7475 |
return TRUE; |
return TRUE; |
| 7476 |
} |
} |
| 7477 |
} |
} |