[ttssh2-commit] [10501] 使用していない ProtocolFamilyMaxLength を削除

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2023年 1月 16日 (月) 22:24:18 JST


Revision: 10501
          https://osdn.net/projects/ttssh2/scm/svn/commits/10501
Author:   zmatsuo
Date:     2023-01-16 22:24:18 +0900 (Mon, 16 Jan 2023)
Log Message:
-----------
使用していない ProtocolFamilyMaxLength を削除

- ドロップダウンの最大文字長をセットしていたが不要

Modified Paths:
--------------
    trunk/teraterm/common/tttypes.h
    trunk/teraterm/ttpdlg/ttdlg.c
    trunk/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: trunk/teraterm/common/tttypes.h
===================================================================
--- trunk/teraterm/common/tttypes.h	2023-01-15 15:07:26 UTC (rev 10500)
+++ trunk/teraterm/common/tttypes.h	2023-01-16 13:24:18 UTC (rev 10501)
@@ -74,12 +74,6 @@
 #define IdCyan    6
 #define IdFore    7
 
-#if 0
-#define HostNameMaxLength 1024
-//#define HostNameMaxLength 80
-#endif
-#define ProtocolFamilyMaxLength 80
-
   /* internal WM_USER messages */
 #define WM_USER_ACCELCOMMAND WM_USER+1
 #define WM_USER_CHANGEMENU   WM_USER+2

Modified: trunk/teraterm/ttpdlg/ttdlg.c
===================================================================
--- trunk/teraterm/ttpdlg/ttdlg.c	2023-01-15 15:07:26 UTC (rev 10500)
+++ trunk/teraterm/ttpdlg/ttdlg.c	2023-01-16 13:24:18 UTC (rev 10501)
@@ -1713,8 +1713,6 @@
 				SendDlgItemMessage(Dialog, IDC_HOSTTCPPROTOCOL, CB_ADDSTRING,
 				                   0, (LPARAM)ProtocolFamilyList[i]);
 			}
-			SendDlgItemMessage(Dialog, IDC_HOSTTCPPROTOCOL, EM_LIMITTEXT,
-			                   ProtocolFamilyMaxLength-1, 0);
 			SendDlgItemMessage(Dialog, IDC_HOSTTCPPROTOCOL, CB_SETCURSEL,0,0);
 
 			j = 0;

Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2023-01-15 15:07:26 UTC (rev 10500)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2023-01-16 13:24:18 UTC (rev 10501)
@@ -1060,8 +1060,6 @@
 			SendDlgItemMessage(dlg, IDC_HOSTTCPPROTOCOL, CB_ADDSTRING,
 			                   0, (LPARAM) ProtocolFamilyList[i]);
 		}
-		SendDlgItemMessage(dlg, IDC_HOSTTCPPROTOCOL, EM_LIMITTEXT,
-		                   ProtocolFamilyMaxLength - 1, 0);
 		SendDlgItemMessage(dlg, IDC_HOSTTCPPROTOCOL, CB_SETCURSEL, 0, 0);
 
 		/////// SSH version


ttssh2-commit メーリングリストの案内
Back to archive index