Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5678 by maya, Sat Oct 4 03:39:24 2014 UTC revision 5679 by maya, Sat Oct 4 15:22:06 2014 UTC
# Line 2552  static BOOL CALLBACK TTXAboutDlg(HWND dl Line 2552  static BOOL CALLBACK TTXAboutDlg(HWND dl
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26