Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 2552 |
if (UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, &logfont, &DlgAboutTextFont, pvar)) { |
if (UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, &logfont, &DlgAboutTextFont, pvar)) { |
| 2553 |
SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0)); |
SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0)); |
| 2554 |
} else { |
} else { |
| 2555 |
DlgAboutTextFont = NULL; |
// 読み込めなかった場合は等幅フォントを指定する。 |
| 2556 |
|
// エディットコントロールはダイアログと同じフォントを持っており |
| 2557 |
|
// 等幅フォントではないため。 |
| 2558 |
|
strncpy_s(logfont.lfFaceName, sizeof(logfont.lfFaceName), "Courier New", _TRUNCATE); |
| 2559 |
|
logfont.lfCharSet = 0; |
| 2560 |
|
logfont.lfHeight = MulDiv(8, GetDeviceCaps(GetDC(dlg),LOGPIXELSY) * -1, 72); |
| 2561 |
|
logfont.lfWidth = 0; |
| 2562 |
|
if ((DlgAboutTextFont = CreateFontIndirect(&logfont)) != NULL) { |
| 2563 |
|
SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0)); |
| 2564 |
|
} |
| 2565 |
|
else { |
| 2566 |
|
DlgAboutTextFont = NULL; |
| 2567 |
|
} |
| 2568 |
} |
} |
| 2569 |
|
|
| 2570 |
// アイコンを動的にセット |
// アイコンを動的にセット |
|
|
Legend:
| Removed from v.5678 |
|
| changed lines |
| |
Added in v.5679 |
|
|
| |