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 3134 by doda, Fri Jun 20 11:58:47 2008 UTC revision 3139 by maya, Fri Aug 1 16:29:01 2008 UTC
# Line 618  static int PASCAL FAR TTXsend(SOCKET s, Line 618  static int PASCAL FAR TTXsend(SOCKET s,
618    
619  void notify_established_secure_connection(PTInstVar pvar)  void notify_established_secure_connection(PTInstVar pvar)
620  {  {
621            int fuLoad = LR_DEFAULTCOLOR;
622    
623            if (is_NT4()) {
624                    fuLoad = LR_VGACOLOR;
625            }
626    
627          // LoadIcon ではなく LoadImage を使うようにし、          // LoadIcon ではなく LoadImage を使うようにし、
628          // 16x16 のアイコンを明示的に取得するようにした (2006.8.9 maya)          // 16x16 のアイコンを明示的に取得するようにした (2006.8.9 maya)
629          if (SecureLargeIcon == NULL) {          if (SecureLargeIcon == NULL) {
630                  SecureLargeIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),                  SecureLargeIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),
631                                              IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);                                              IMAGE_ICON, 0, 0, fuLoad);
632          }          }
633          if (SecureSmallIcon == NULL) {          if (SecureSmallIcon == NULL) {
634                  SecureSmallIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),                  SecureSmallIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),
635                                              IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);                                              IMAGE_ICON, 16, 16, fuLoad);
636          }          }
637    
638          if (SecureLargeIcon != NULL && SecureSmallIcon != NULL) {          if (SecureLargeIcon != NULL && SecureSmallIcon != NULL) {
# Line 1971  static BOOL CALLBACK TTXAboutDlg(HWND dl Line 1977  static BOOL CALLBACK TTXAboutDlg(HWND dl
1977                  else {                  else {
1978                          DlgAboutFont = NULL;                          DlgAboutFont = NULL;
1979                  }                  }
1980    
1981                    // アイコンを動的にセット
1982                    {
1983                            int fuLoad = LR_DEFAULTCOLOR;
1984                            HICON hicon;
1985    
1986                            if (is_NT4()) {
1987                                    fuLoad = LR_VGACOLOR;
1988                            }
1989    
1990                            hicon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),
1991                                              IMAGE_ICON, 32, 32, fuLoad);
1992                            SendDlgItemMessage(dlg, IDC_TTSSH_ICON, STM_SETICON, (WPARAM)hicon, 0);
1993                    }
1994    
1995                  init_about_dlg((PTInstVar) lParam, dlg);                  init_about_dlg((PTInstVar) lParam, dlg);
1996                  return TRUE;                  return TRUE;
1997          case WM_COMMAND:          case WM_COMMAND:

Legend:
Removed from v.3134  
changed lines
  Added in v.3139

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