• R/O
  • SSH
  • HTTPS

ttssh2: コミット


コミットメタ情報

リビジョン6882 (tree)
日時2017-07-26 12:47:40
作者doda

ログメッセージ

コード整理。処理内容は変化なし。

・コメントの typo fix
・インデント調整
・#if 0 でコメントアウトされたコードブロックを削除
・現状に合わないコメントを削除

変更サマリ

差分

--- trunk/teraterm/teraterm/vtwin.cpp (revision 6881)
+++ trunk/teraterm/teraterm/vtwin.cpp (revision 6882)
@@ -5364,7 +5364,6 @@
53645364 return TRUE;
53655365 }
53665366
5367-
53685367 //
53695368 // 現在読み込まれている teraterm.ini ファイルが格納されている
53705369 // フォルダをエクスプローラで開く。
@@ -5380,7 +5379,6 @@
53805379
53815380 }
53825381
5383-
53845382 void CVTWindow::OnSetupLoadKeyMap()
53855383 {
53865384 BOOL Ok;
@@ -5480,9 +5478,6 @@
54805478 SendDlgItemMessage(Dialog, IDC_COMMAND_EDIT, CB_SETCURSEL,0,0);
54815479 }
54825480
5483-
5484-
5485-
54865481 // ドロップダウンの中のエディットコントロールを
54875482 // サブクラス化するためのウインドウプロシージャ
54885483 static WNDPROC OrigBroadcastEditProc; // Original window procedure
@@ -5526,16 +5521,7 @@
55265521 SetWindowText(dlg, "");
55275522 SendMessage(dlg, EM_SETSEL, 0, 0);
55285523 }
5529-#if 0
5530- for (i = 0 ; i < MAXNWIN ; i++) { // 50 = MAXNWIN(@ ttcmn.c)
5531- hd = GetNthWin(i);
5532- if (hd == NULL)
5533- break;
55345524
5535- PostMessage(hd, msg, wParam, lParam);
5536- //PostMessage(hd, WM_SETFOCUS, NULL, 0);
5537- }
5538-#else
55395525 count = SendMessage(BroadcastWindowList, LB_GETCOUNT, 0, 0);
55405526 for (i = 0 ; i < count ; i++) {
55415527 if (SendMessage(BroadcastWindowList, LB_GETSEL, i, 0)) {
@@ -5545,21 +5531,11 @@
55455531 }
55465532 }
55475533 }
5548-#endif
55495534 }
55505535 break;
55515536
55525537 case WM_CHAR:
5553-#if 0
5554- switch (wParam) {
5555- case VK_RETURN:
5556- case VK_ESCAPE:
5557- // 警告音が出ないようにする
5558- return FALSE;
5559- }
5560- // not break;
5561-#endif
5562- // 入力した文字ががIDC_COMMAND_EDITに残らないように捨てる
5538+ // 入力した文字がIDC_COMMAND_EDITに残らないように捨てる
55635539 return FALSE;
55645540
55655541 default:
@@ -5575,7 +5551,7 @@
55755551 int i;
55765552 HWND hd;
55775553
5578- for (i = 0 ; i < MAXNWIN ; i++) { // 50 = MAXNWIN(@ ttcmn.c)
5554+ for (i = 0 ; i < MAXNWIN ; i++) {
55795555 hd = GetNthWin(i);
55805556 if (hd == NULL) {
55815557 break;
@@ -5584,7 +5560,6 @@
55845560 return (i);
55855561 }
55865562
5587-
55885563 static void UpdateBroadcastWindowList(HWND hWnd)
55895564 {
55905565 int i;
@@ -5593,7 +5568,7 @@
55935568
55945569 SendMessage(hWnd, LB_RESETCONTENT, 0, 0);
55955570
5596- for (i = 0 ; i < MAXNWIN ; i++) { // 50 = MAXNWIN(@ ttcmn.c)
5571+ for (i = 0 ; i < MAXNWIN ; i++) {
55975572 hd = GetNthWin(i);
55985573 if (hd == NULL) {
55995574 break;
@@ -5602,12 +5577,6 @@
56025577 GetWindowText(hd, szWindowText, 256);
56035578 SendMessage(hWnd, LB_INSERTSTRING, -1, (LPARAM)szWindowText);
56045579 }
5605-
5606-#if 0
5607- for (i = 0 ; i < SendMessage(BroadcastWindowList, LB_GETCOUNT, 0, 0) ; i++) {
5608- SendMessage(hWnd, LB_SETSEL, TRUE, i);
5609- }
5610-#endif
56115580 }
56125581
56135582 /*
@@ -5652,10 +5621,8 @@
56525621 // (2006.2.7 yutaka)
56535622 PostMessage(hd, WM_SETFOCUS, NULL, 0);
56545623 }
5655-
56565624 }
56575625
5658-
56595626 /*
56605627 * 任意のTeraTerm群へメッセージを送信するマルチキャストモード。厳密には、
56615628 * ブロードキャスト送信を行い、受信側でメッセージを取捨選択する。
@@ -5690,7 +5657,7 @@
56905657 memcpy(msg + nlen, buf, buflen);
56915658
56925659 // すべてのTera Termにメッセージとデータを送る
5693- for (i = 0 ; i < MAXNWIN ; i++) { // 50 = MAXNWIN(@ ttcmn.c)
5660+ for (i = 0 ; i < MAXNWIN ; i++) {
56945661 hd = GetNthWin(i);
56955662 if (hd == NULL) {
56965663 break;
@@ -5714,7 +5681,6 @@
57145681 free(msg);
57155682 }
57165683
5717-
57185684 extern "C"
57195685 void SetMulticastName(char *name)
57205686 {
@@ -5841,15 +5807,15 @@
58415807 init_height = rc_dlg.bottom - rc_dlg.top;
58425808
58435809 // 現在サイズから必要な値を計算
5844- GetClientRect(hWnd, &rc_dlg);
5810+ GetClientRect(hWnd, &rc_dlg);
58455811 p.x = rc_dlg.right;
58465812 p.y = rc_dlg.bottom;
58475813 ClientToScreen(hWnd, &p);
58485814
5849- GetWindowRect(GetDlgItem(hWnd, IDOK), &rc_ok);
5815+ GetWindowRect(GetDlgItem(hWnd, IDOK), &rc_ok);
58505816 ok2right = p.x - rc_ok.left;
58515817
5852- GetWindowRect(GetDlgItem(hWnd, IDCANCEL), &rc);
5818+ GetWindowRect(GetDlgItem(hWnd, IDCANCEL), &rc);
58535819 cancel2right = p.x - rc.left;
58545820
58555821 GetWindowRect(GetDlgItem(hWnd, IDC_COMMAND_EDIT), &rc);
@@ -5944,7 +5910,7 @@
59445910 GetDefaultFName(ts.HomeDir, BROADCAST_LOGFILE, historyfile, sizeof(historyfile));
59455911 if (LoadTTSET()) {
59465912 (*AddValueToList)(historyfile, buf, "BroadcastCommands", "Command",
5947- ts.MaxBroadcatHistory);
5913+ ts.MaxBroadcatHistory);
59485914 FreeTTSET();
59495915 }
59505916 ApplyBroadCastCommandHisotry(hWnd, historyfile);
@@ -6046,7 +6012,7 @@
60466012 POINT p;
60476013
60486014 // 新しいダイアログのサイズを得る
6049- GetClientRect(hWnd, &rc_dlg);
6015+ GetClientRect(hWnd, &rc_dlg);
60506016 dlg_w = rc_dlg.right;
60516017 dlg_h = rc_dlg.bottom;
60526018
@@ -6056,8 +6022,8 @@
60566022 p.y = rc.top;
60576023 ScreenToClient(hWnd, &p);
60586024 SetWindowPos(GetDlgItem(hWnd, IDOK), 0,
6059- dlg_w - ok2right, p.y, 0, 0,
6060- SWP_NOSIZE | SWP_NOZORDER);
6025+ dlg_w - ok2right, p.y, 0, 0,
6026+ SWP_NOSIZE | SWP_NOZORDER);
60616027
60626028 // Cancel button
60636029 GetWindowRect(GetDlgItem(hWnd, IDCANCEL), &rc);
@@ -6065,8 +6031,8 @@
60656031 p.y = rc.top;
60666032 ScreenToClient(hWnd, &p);
60676033 SetWindowPos(GetDlgItem(hWnd, IDCANCEL), 0,
6068- dlg_w - cancel2right, p.y, 0, 0,
6069- SWP_NOSIZE | SWP_NOZORDER);
6034+ dlg_w - cancel2right, p.y, 0, 0,
6035+ SWP_NOSIZE | SWP_NOZORDER);
60706036
60716037 // Command Edit box
60726038 GetWindowRect(GetDlgItem(hWnd, IDC_COMMAND_EDIT), &rc);
@@ -6074,8 +6040,8 @@
60746040 p.y = rc.top;
60756041 ScreenToClient(hWnd, &p);
60766042 SetWindowPos(GetDlgItem(hWnd, IDC_COMMAND_EDIT), 0,
6077- 0, 0, dlg_w - p.x - ok2right - cmdlist2ok, p.y,
6078- SWP_NOMOVE | SWP_NOZORDER);
6043+ 0, 0, dlg_w - p.x - ok2right - cmdlist2ok, p.y,
6044+ SWP_NOMOVE | SWP_NOZORDER);
60796045
60806046 // List Edit box
60816047 GetWindowRect(GetDlgItem(hWnd, IDC_LIST), &rc);
@@ -6083,8 +6049,8 @@
60836049 p.y = rc.top;
60846050 ScreenToClient(hWnd, &p);
60856051 SetWindowPos(GetDlgItem(hWnd, IDC_LIST), 0,
6086- 0, 0, dlg_w - p.x - list2right , dlg_h - p.y - list2bottom,
6087- SWP_NOMOVE | SWP_NOZORDER);
6052+ 0, 0, dlg_w - p.x - list2right , dlg_h - p.y - list2bottom,
6053+ SWP_NOMOVE | SWP_NOZORDER);
60886054
60896055 // status bar
60906056 SendMessage(hStatus , msg , wp , lp);
@@ -6230,8 +6196,6 @@
62306196 return 1; // 送信できた場合は1を返す
62316197 }
62326198
6233-
6234-
62356199 void CVTWindow::OnControlOpenTEK()
62366200 {
62376201 OpenTEK();
旧リポジトリブラウザで表示