svnno****@sourc*****
svnno****@sourc*****
2013年 5月 3日 (金) 20:47:57 JST
Revision: 5230 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5230 Author: yutakapon Date: 2013-05-03 20:47:56 +0900 (Fri, 03 May 2013) Log Message: ----------- 最大化だけではなく、最小化状態も復元できるようにした。 Modified Paths: -------------- trunk/teraterm/ttpcmn/ttcmn.c -------------- next part -------------- Modified: trunk/teraterm/ttpcmn/ttcmn.c =================================================================== --- trunk/teraterm/ttpcmn/ttcmn.c 2013-05-03 10:07:08 UTC (rev 5229) +++ trunk/teraterm/ttpcmn/ttcmn.c 2013-05-03 11:47:56 UTC (rev 5230) @@ -1077,10 +1077,8 @@ rc.bottom - rc.top, SWP_NOZORDER); - // \x8Dő剻\x82\xB5\x82Ă\xA2\x82\xBD\x82\xA9\x81H - if (pm->WinPrevRect[i].showCmd == SW_SHOWMAXIMIZED) { - ShowWindow(pm->WinList[i], SW_MAXIMIZE); - } + // \x83E\x83B\x83\x93\x83h\x83E\x82̏\xF3\x91ԕ\x9C\x8C\xB3 + ShowWindow(pm->WinList[i], pm->WinPrevRect[i].showCmd); } else { ShowWindow(pm->WinList[i], stat); @@ -1123,11 +1121,6 @@ n = 0; for (i = 0 ; i < pm->NWin ; i++) { - if (IsIconic(pm->WinList[i]) || !IsWindowVisible(pm->WinList[i])) { - memset(&pm->WinPrevRect[i], 0, sizeof(pm->WinPrevRect[i])); - continue; - } - // \x8C\xBB\x8D݈ʒu\x82\xF0\x8Ao\x82\xA6\x82Ă\xA8\x82\xAD\x81B wndPlace.length = sizeof(WINDOWPLACEMENT); GetWindowPlacement(pm->WinList[i], &wndPlace);