| 96 |
|
|
| 97 |
static HFONT DlgHostFont; |
static HFONT DlgHostFont; |
| 98 |
static HFONT DlgAboutFont; |
static HFONT DlgAboutFont; |
| 99 |
|
static HFONT DlgAboutTextFont; |
| 100 |
static HFONT DlgSetupFont; |
static HFONT DlgSetupFont; |
| 101 |
static HFONT DlgKeygenFont; |
static HFONT DlgKeygenFont; |
| 102 |
|
|
| 2498 |
SendDlgItemMessage(dlg, IDC_WEBSITES, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
SendDlgItemMessage(dlg, IDC_WEBSITES, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
| 2499 |
SendDlgItemMessage(dlg, IDC_CRYPTOGRAPHY, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
SendDlgItemMessage(dlg, IDC_CRYPTOGRAPHY, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
| 2500 |
SendDlgItemMessage(dlg, IDC_CREDIT, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
SendDlgItemMessage(dlg, IDC_CREDIT, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
| 2501 |
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
| 2502 |
} |
} |
| 2503 |
else { |
else { |
| 2504 |
DlgAboutFont = NULL; |
DlgAboutFont = NULL; |
| 2505 |
} |
} |
| 2506 |
|
|
| 2507 |
|
// Edit controlは等幅フォントで表示したいので、別設定情報からフォントをセットする。 |
| 2508 |
|
// (2014.5.5. yutaka) |
| 2509 |
|
if (UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, &logfont, &DlgAboutTextFont, pvar)) { |
| 2510 |
|
SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0)); |
| 2511 |
|
} else { |
| 2512 |
|
DlgAboutTextFont = NULL; |
| 2513 |
|
} |
| 2514 |
|
|
| 2515 |
// アイコンを動的にセット |
// アイコンを動的にセット |
| 2516 |
{ |
{ |
| 2517 |
int fuLoad = LR_DEFAULTCOLOR; |
int fuLoad = LR_DEFAULTCOLOR; |
| 2541 |
if (DlgAboutFont != NULL) { |
if (DlgAboutFont != NULL) { |
| 2542 |
DeleteObject(DlgAboutFont); |
DeleteObject(DlgAboutFont); |
| 2543 |
} |
} |
| 2544 |
|
if (DlgAboutTextFont != NULL) { |
| 2545 |
|
DeleteObject(DlgAboutTextFont); |
| 2546 |
|
} |
| 2547 |
return TRUE; |
return TRUE; |
| 2548 |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
| 2549 |
UI things can send this message */ |
UI things can send this message */ |
| 2551 |
if (DlgAboutFont != NULL) { |
if (DlgAboutFont != NULL) { |
| 2552 |
DeleteObject(DlgAboutFont); |
DeleteObject(DlgAboutFont); |
| 2553 |
} |
} |
| 2554 |
|
if (DlgAboutTextFont != NULL) { |
| 2555 |
|
DeleteObject(DlgAboutTextFont); |
| 2556 |
|
} |
| 2557 |
return TRUE; |
return TRUE; |
| 2558 |
} |
} |
| 2559 |
break; |
break; |