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 2892 by yutakakn, Sat Aug 5 03:50:59 2006 UTC revision 2896 by maya, Wed Aug 9 09:13:49 2006 UTC
# Line 81  static char FAR *ProtocolFamilyList[] = Line 81  static char FAR *ProtocolFamilyList[] =
81  #define ORDER 2500  #define ORDER 2500
82    
83  #ifdef TERATERM32  #ifdef TERATERM32
84  static HICON SecureIcon = NULL;  static HICON SecureLargeIcon = NULL;
85    static HICON SecureSmallIcon = NULL;
86  #endif  #endif
87    
88  static TInstVar FAR *pvar;  static TInstVar FAR *pvar;
# Line 685  static int PASCAL FAR TTXsend(SOCKET s, Line 686  static int PASCAL FAR TTXsend(SOCKET s,
686  void notify_established_secure_connection(PTInstVar pvar)  void notify_established_secure_connection(PTInstVar pvar)
687  {  {
688  #ifdef TERATERM32  #ifdef TERATERM32
689          if (SecureIcon == NULL) {          if (SecureLargeIcon == NULL) {
690                  SecureIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_SECURETT));                  SecureLargeIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),
691                                                                            IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);
692            }
693            if (SecureSmallIcon == NULL) {
694                    SecureSmallIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),
695                                                                            IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
696          }          }
697    
698          if (SecureIcon != NULL) {          if (SecureLargeIcon != NULL && SecureSmallIcon != NULL) {
699                  pvar->OldSmallIcon =                  pvar->OldSmallIcon =
700                          (HICON) SendMessage(pvar->NotificationWindow, WM_GETICON,                          (HICON) SendMessage(pvar->NotificationWindow, WM_GETICON,
701                                                                  ICON_SMALL, 0);                                                                  ICON_SMALL, 0);
# Line 697  void notify_established_secure_connectio Line 703  void notify_established_secure_connectio
703                          (HICON) SendMessage(pvar->NotificationWindow, WM_GETICON,                          (HICON) SendMessage(pvar->NotificationWindow, WM_GETICON,
704                                                                  ICON_BIG, 0);                                                                  ICON_BIG, 0);
705                  PostMessage(pvar->NotificationWindow, WM_SETICON, ICON_BIG,                  PostMessage(pvar->NotificationWindow, WM_SETICON, ICON_BIG,
706                                          (LPARAM) SecureIcon);                                          (LPARAM) SecureLargeIcon);
707                  PostMessage(pvar->NotificationWindow, WM_SETICON, ICON_SMALL,                  PostMessage(pvar->NotificationWindow, WM_SETICON, ICON_SMALL,
708                                          (LPARAM) SecureIcon);                                          (LPARAM) SecureSmallIcon);
709          }          }
710  #endif  #endif
711    
# Line 3124  int CALLBACK LibMain(HANDLE hInstance, W Line 3130  int CALLBACK LibMain(HANDLE hInstance, W
3130    
3131  /*  /*
3132   * $Log: not supported by cvs2svn $   * $Log: not supported by cvs2svn $
3133     * Revision 1.35  2006/08/05 03:50:59  yutakakn
3134     * 改行コードをLFへ変換した。
3135     *
3136   * Revision 1.34  2006/08/05 03:47:49  yutakakn   * Revision 1.34  2006/08/05 03:47:49  yutakakn
3137   * パスワードをメモリ上に覚えておくかどうかの設定は teraterm.ini に反映させるようにした。   * パスワードをメモリ上に覚えておくかどうかの設定は teraterm.ini に反映させるようにした。
3138   *   *

Legend:
Removed from v.2892  
changed lines
  Added in v.2896

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