svnno****@sourc*****
svnno****@sourc*****
2009年 4月 24日 (金) 19:39:08 JST
Revision: 3347 http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3347 Author: yutakapon Date: 2009-04-24 19:39:08 +0900 (Fri, 24 Apr 2009) Log Message: ----------- Broadcastã³ãã³ãï¼éãªã¢ã«ã¿ã¤ã ã¢ã¼ãï¼ã«ããã¦ãç¡æ¡ä»¶ã«ãã¹ã¦ã®TeraTermã¸ã¡ãã»ã¼ã¸ãéãã®ã§ã¯ãªãã ãªã¹ãããã¯ã¹ã§é¸æããã¦ããã¦ã£ã³ãã¦ã«å¯¾ãã¦ãéä¿¡ããããã«ããã Modified Paths: -------------- trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2009-04-23 03:54:52 UTC (rev 3346) +++ trunk/teraterm/teraterm/vtwin.cpp 2009-04-24 10:39:08 UTC (rev 3347) @@ -4215,16 +4215,21 @@ void SendAllBroadcastMessage(HWND HVTWin, HWND hWnd, int parent_only, char *buf, int buflen) { int i; + int count; HWND hd; COPYDATASTRUCT cds; // ·×ÄÌTera TermÉbZ[WÆf[^ðé - for (i = 0 ; i < MAXNWIN ; i++) { // 50 = MAXNWIN(@ ttcmn.c) + count = SendMessage(BroadcastWindowList, LB_GETCOUNT, 0, 0); + for (i = 0 ; i < count ; i++) { if (parent_only) { hd = GetParent(hWnd); i = MAXNWIN; // 337: ø©Â¼l :P } else { - hd = GetNthWin(i); + // Xg{bNXÅIð³êÄ¢é© + if (SendMessage(BroadcastWindowList, LB_GETSEL, i, 0)) { + hd = GetNthWin(i); + } } if (hd == NULL) break; @@ -4459,7 +4464,7 @@ EnableWindow(GetDlgItem(hWnd, IDC_RADIO_LF), TRUE); EnableWindow(GetDlgItem(hWnd, IDC_ENTERKEY_CHECK), TRUE); EnableWindow(GetDlgItem(hWnd, IDC_PARENT_ONLY), TRUE); - EnableWindow(GetDlgItem(hWnd, IDC_LIST), FALSE); // false + EnableWindow(GetDlgItem(hWnd, IDC_LIST), TRUE); // true } return TRUE; }