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 5576 by yutakapon, Thu May 1 14:19:20 2014 UTC revision 5578 by yutakapon, Sun May 4 15:49:47 2014 UTC
# Line 96  static HICON SecureSmallIcon = NULL; Line 96  static HICON SecureSmallIcon = NULL;
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    
# Line 2497  static BOOL CALLBACK TTXAboutDlg(HWND dl Line 2498  static BOOL CALLBACK TTXAboutDlg(HWND dl
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;
# Line 2533  static BOOL CALLBACK TTXAboutDlg(HWND dl Line 2541  static BOOL CALLBACK TTXAboutDlg(HWND dl
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 */
# Line 2540  static BOOL CALLBACK TTXAboutDlg(HWND dl Line 2551  static BOOL CALLBACK TTXAboutDlg(HWND dl
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;

Legend:
Removed from v.5576  
changed lines
  Added in v.5578

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