[Ttssh2-commit] [4666] プロシージャ名を変更

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 10月 2日 (日) 14:50:50 JST


Revision: 4666
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4666
Author:   maya
Date:     2011-10-02 14:50:50 +0900 (Sun, 02 Oct 2011)

Log Message:
-----------
プロシージャ名を変更

Modified Paths:
--------------
    trunk/teraterm/teraterm/vtwin.cpp


-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2011-10-02 03:57:27 UTC (rev 4665)
+++ trunk/teraterm/teraterm/vtwin.cpp	2011-10-02 05:50:50 UTC (rev 4666)
@@ -4399,10 +4399,10 @@
 
 // ƒhƒƒbƒvƒ_ƒEƒ“‚Ì’†‚̃GƒfƒBƒbƒgƒRƒ“ƒgƒ[ƒ‹‚ð
 // ƒTƒuƒNƒ‰ƒX‰»‚·‚邽‚߂̃EƒCƒ“ƒhƒEƒvƒƒV[ƒWƒƒ
-static WNDPROC OrigHostnameEditProc; // Original window procedure
+static WNDPROC OrigBroadcastEditProc; // Original window procedure
 static HWND BroadcastWindowList;
-static LRESULT CALLBACK HostnameEditProc(HWND dlg, UINT msg,
-                                         WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK BroadcastEditProc(HWND dlg, UINT msg,
+                                          WPARAM wParam, LPARAM lParam)
 {
 	char buf[1024];
 	int len;
@@ -4435,7 +4435,7 @@
 				int i;
 				HWND hd;
 				int count;
-
+OutputDebugPrintf("msg=%d wParam=%d lParam=%d\n", msg, wParam, lParam);
 				if (wParam == 0x0d) {  // Enter key
 					SetWindowText(dlg, "");
 					SendMessage(dlg, EM_SETSEL, 0, 0);
@@ -4464,7 +4464,7 @@
 			break;
 
 		default:
-			return CallWindowProc(OrigHostnameEditProc, dlg, msg, wParam, lParam);
+			return CallWindowProc(OrigBroadcastEditProc, dlg, msg, wParam, lParam);
 	}
 
 	return FALSE;
@@ -4643,8 +4643,8 @@
 	HFONT font;
 	char uimsg[MAX_UIMSG];
 	char historyfile[MAX_PATH];
-	static HWND hwndHostname     = NULL; // HOSTNAME dropdown
-	static HWND hwndHostnameEdit = NULL; // Edit control on HOSTNAME dropdown
+	static HWND hwndBroadcast     = NULL; // Broadcast dropdown
+	static HWND hwndBroadcastEdit = NULL; // Edit control on Broadcast dropdown
 	// for resize
 	RECT rc_dlg, rc, rc_ok;
 	POINT p;
@@ -4682,10 +4682,10 @@
 			SetFocus(GetDlgItem(hWnd, IDC_COMMAND_EDIT));
 
 			// ƒTƒuƒNƒ‰ƒX‰»‚³‚¹‚ăŠƒAƒ‹ƒ^ƒCƒ€ƒ‚[ƒh‚É‚·‚é (2008.1.21 yutaka)
-			hwndHostname = GetDlgItem(hWnd, IDC_COMMAND_EDIT);
-			hwndHostnameEdit = GetWindow(hwndHostname, GW_CHILD);
-			OrigHostnameEditProc = (WNDPROC)GetWindowLong(hwndHostnameEdit, GWL_WNDPROC);
-			SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)HostnameEditProc);
+			hwndBroadcast = GetDlgItem(hWnd, IDC_COMMAND_EDIT);
+			hwndBroadcastEdit = GetWindow(hwndBroadcast, GW_CHILD);
+			OrigBroadcastEditProc = (WNDPROC)GetWindowLong(hwndBroadcastEdit, GWL_WNDPROC);
+			SetWindowLong(hwndBroadcastEdit, GWL_WNDPROC, (LONG)BroadcastEditProc);
 			// ƒfƒtƒHƒ‹ƒg‚ÍonBŽc‚è‚ÍdisableB
 			SendMessage(GetDlgItem(hWnd, IDC_REALTIME_CHECK), BM_SETCHECK, BST_CHECKED, 0);  // default on
 			EnableWindow(GetDlgItem(hWnd, IDC_HISTORY_CHECK), FALSE);
@@ -4794,10 +4794,10 @@
 				checked = SendMessage(GetDlgItem(hWnd, IDC_REALTIME_CHECK), BM_GETCHECK, 0, 0);
 				if (checked & BST_CHECKED) { // check‚ ‚è
 					// new handler
-					hwndHostname = GetDlgItem(hWnd, IDC_COMMAND_EDIT);
-					hwndHostnameEdit = GetWindow(hwndHostname, GW_CHILD);
-					OrigHostnameEditProc = (WNDPROC)GetWindowLong(hwndHostnameEdit, GWL_WNDPROC);
-					SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)HostnameEditProc);
+					hwndBroadcast = GetDlgItem(hWnd, IDC_COMMAND_EDIT);
+					hwndBroadcastEdit = GetWindow(hwndBroadcast, GW_CHILD);
+					OrigBroadcastEditProc = (WNDPROC)GetWindowLong(hwndBroadcastEdit, GWL_WNDPROC);
+					SetWindowLong(hwndBroadcastEdit, GWL_WNDPROC, (LONG)BroadcastEditProc);
 
 					EnableWindow(GetDlgItem(hWnd, IDC_HISTORY_CHECK), FALSE);
 					EnableWindow(GetDlgItem(hWnd, IDC_RADIO_CRLF), FALSE);
@@ -4808,7 +4808,7 @@
 					EnableWindow(GetDlgItem(hWnd, IDC_LIST), TRUE);  // true
 				} else {
 					// restore old handler
-					SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)OrigHostnameEditProc);
+					SetWindowLong(hwndBroadcastEdit, GWL_WNDPROC, (LONG)OrigBroadcastEditProc);
 
 					EnableWindow(GetDlgItem(hWnd, IDC_HISTORY_CHECK), TRUE);
 					EnableWindow(GetDlgItem(hWnd, IDC_RADIO_CRLF), TRUE);
@@ -4883,7 +4883,7 @@
 					// ƒ‚[ƒhƒŒƒXƒ_ƒCƒAƒƒO‚͈ê“x¶¬‚³‚ê‚é‚ƁAƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚ªI—¹‚·‚é‚Ü‚Å
 					// ”jŠü‚³‚ê‚È‚¢‚̂ŁAˆÈ‰º‚́uƒEƒBƒ“ƒhƒEƒvƒƒV[ƒWƒƒ–ß‚µv‚Í•s—v‚ÆŽv‚í‚ê‚éB(yutaka)
 #if 0
-					SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)OrigHostnameEditProc);
+					SetWindowLong(hwndBroadcastEdit, GWL_WNDPROC, (LONG)OrigBroadcastEditProc);
 #endif
 
 					//EndDialog(hDlgWnd, IDOK);



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