[Ttssh2-commit] [3634] Broadcast Commandにステータスバーを付け、ダイアログウィンドウの右下にリサイズアイコンが表示されるようにした。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 10月 8日 (木) 00:06:01 JST


Revision: 3634
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3634
Author:   yutakapon
Date:     2009-10-08 00:06:01 +0900 (Thu, 08 Oct 2009)

Log Message:
-----------
Broadcast Commandにステータスバーを付け、ダイアログウィンドウの右下にリサイズアイコンが表示されるようにした。

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


-------------- next part --------------
Modified: trunk/teraterm/teraterm/ttermpro.rc
===================================================================
--- trunk/teraterm/teraterm/ttermpro.rc	2009-10-07 14:06:50 UTC (rev 3633)
+++ trunk/teraterm/teraterm/ttermpro.rc	2009-10-07 15:06:01 UTC (rev 3634)
@@ -93,7 +93,7 @@
     COMBOBOX        IDC_ACCEPT_TITLE_CHANGING,162,114,45,12,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
 END
 
-IDD_BROADCAST_DIALOG DIALOGEX 0, 0, 252, 98
+IDD_BROADCAST_DIALOG DIALOGEX 0, 0, 252, 104
 STYLE DS_SETFONT | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
 CAPTION "Tera Term: Broadcast command"
 FONT 10, "System", 400, 0, 0x80
@@ -109,7 +109,7 @@
     COMBOBOX        IDC_COMMAND_EDIT,8,3,189,30,CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
     CONTROL         "Send to this process only",IDC_PARENT_ONLY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,36,111,10
     CONTROL         "Realtime mode",IDC_REALTIME_CHECK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,134,36,62,10
-    LISTBOX         IDC_LIST,8,51,237,45,LBS_SORT | LBS_MULTIPLESEL | LBS_NOINTEGRALHEIGHT | LBS_WANTKEYBOARDINPUT | WS_VSCROLL | WS_TABSTOP
+    LISTBOX         IDC_LIST,8,49,237,46,LBS_SORT | LBS_MULTIPLESEL | LBS_NOINTEGRALHEIGHT | LBS_WANTKEYBOARDINPUT | WS_VSCROLL | WS_TABSTOP
 END
 
 IDD_TABSHEET_VISUAL DIALOGEX 0, 0, 242, 148
@@ -288,7 +288,7 @@
     BEGIN
         LEFTMARGIN, 8
         RIGHTMARGIN, 245
-        BOTTOMMARGIN, 96
+        BOTTOMMARGIN, 102
     END
 
     IDD_TABSHEET_VISUAL, DIALOG

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2009-10-07 14:06:50 UTC (rev 3633)
+++ trunk/teraterm/teraterm/vtwin.cpp	2009-10-07 15:06:01 UTC (rev 3634)
@@ -4544,7 +4544,9 @@
 	// for update list
 	const int list_timer_id = 100;
 	const int list_timer_tick = 1000; // msec
-	static int prev_instances = 1;
+	static int prev_instances = 0;
+	// for status bar
+	static HWND hStatus = NULL;
 
 	switch (msg) {
 		case WM_SHOWWINDOW:
@@ -4646,6 +4648,13 @@
 			list2bottom = p.y - rc.bottom;
 			list2right = p.x - rc.right;
 
+			// ƒŠƒTƒCƒYƒAƒCƒRƒ“‚ð‰E‰º‚É•\Ž¦‚³‚¹‚½‚¢‚̂ŁAƒXƒe[ƒ^ƒXƒo[‚ð•t‚¯‚éB
+			InitCommonControls();
+			hStatus = CreateStatusWindow(
+				WS_CHILD | WS_VISIBLE |
+				CCS_BOTTOM | SBARS_SIZEGRIP, NULL, hWnd, 1);
+
+			// ƒŠƒXƒgXVƒ^ƒCƒ}[‚ÌŠJŽn
 			SetTimer(hWnd, list_timer_id, list_timer_tick, NULL);
 
 			return FALSE;
@@ -4853,6 +4862,9 @@
 				SetWindowPos(GetDlgItem(hWnd, IDC_LIST), 0,
 							 0, 0, dlg_w - p.x - list2right , dlg_h - p.y - list2bottom,
 							 SWP_NOMOVE | SWP_NOZORDER);
+
+				// status bar
+				SendMessage(hStatus , msg , wp , lp);
 			}
 			return TRUE;
 
@@ -4866,7 +4878,7 @@
 				n = GetApplicationInstanceCount();
 				if (n != prev_instances) {
 					prev_instances = n;
-					UpdateBroadcastWindowList(BroadcastWindowList);			
+					UpdateBroadcastWindowList(BroadcastWindowList);	
 				}
 			}
 			return TRUE;



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