svnno****@sourc*****
svnno****@sourc*****
2009年 4月 27日 (月) 01:13:29 JST
Revision: 3350 http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3350 Author: yutakapon Date: 2009-04-27 01:13:29 +0900 (Mon, 27 Apr 2009) Log Message: ----------- SCP転éã¦ã£ã³ãã¦ã®ãã£ã³ã»ã«å¦çãã²ã¨ã¾ã¨ãã«ããã ãã ãã親ã¦ã£ã³ãã¦ãæå°åããã¨ã転éå¦çãä¸æããã¦ãã¾ãã Modified Paths: -------------- trunk/ttssh2/ttxssh/ssh.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ssh.c =================================================================== --- trunk/ttssh2/ttxssh/ssh.c 2009-04-24 14:58:32 UTC (rev 3349) +++ trunk/ttssh2/ttxssh/ssh.c 2009-04-26 16:13:29 UTC (rev 3350) @@ -8099,6 +8099,17 @@ return TRUE; } +static int is_canceled_window(HWND hd) +{ + // Ŭ»³êÄ¢éÆ«ÍALZÅÍÈ¢B + if (IsIconic(hd)) + return 0; + // EBhEª©¦ÈÈÁ½çALZ³ê½B + if (IsWindowVisible(hd) == 0) + return 1; + return 0; +} + static unsigned __stdcall ssh_scp_thread(void FAR * p) { Channel_t *c = (Channel_t *)p; @@ -8115,7 +8126,7 @@ do { // Cancel{^ªº³ê½çEBhEªÁ¦éB - if (IsWindow(hWnd) == 0) + if (is_canceled_window(hWnd)) goto cancel_abort; // t@C©çÇÝñ¾f[^Í©Èç¸T[oÖM·éB @@ -8239,7 +8250,7 @@ for (;;) { // Cancel{^ªº³ê½çEBhEªÁ¦éB - if (IsWindow(hWnd) == 0) + if (is_canceled_window(hWnd)) goto cancel_abort; if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) != 0) {