Revision: 7932 https://osdn.net/projects/ttssh2/scm/svn/commits/7932 Author: zmatsuo Date: 2019-08-10 00:39:55 +0900 (Sat, 10 Aug 2019) Log Message: ----------- setdlgposでlistboxの表示位置を設定できるよう修正 - r7857 の不具合 - ttssh2-devel 4035 - ticket #39334, r7857, r7859, r7860 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/7857 https://osdn.net/projects/ttssh2/scm/svn/commits/7857 https://osdn.net/projects/ttssh2/scm/svn/commits/7859 https://osdn.net/projects/ttssh2/scm/svn/commits/7860 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/39334 Modified Paths: -------------- trunk/teraterm/ttpmacro/ListDlg.cpp -------------- next part -------------- Modified: trunk/teraterm/ttpmacro/ListDlg.cpp =================================================================== --- trunk/teraterm/ttpmacro/ListDlg.cpp 2019-08-09 13:37:01 UTC (rev 7931) +++ trunk/teraterm/ttpmacro/ListDlg.cpp 2019-08-09 15:39:55 UTC (rev 7932) @@ -198,16 +198,21 @@ ::MoveWindow(HList,CONTROL_GAP_W,BH/2,LW,LH,TRUE); ::MoveWindow(HOk,CONTROL_GAP_W+CONTROL_GAP_W+LW,BH/2,BW,BH,TRUE); ::MoveWindow(HCancel,CONTROL_GAP_W+CONTROL_GAP_W+LW,BH*2,BW,BH,TRUE); - ::SetWindowPos(m_hWnd, HWND_TOP,0,0,WW,WH,SWP_NOMOVE); // PosX\x82\xAA\x83f\x83B\x83X\x83v\x83\x8C\x83C\x82̊O\x82\xCC-100\x88ȉ\xBA\x82̈ʒu\x82ɂ\xA0\x82\xE9\x8Fꍇ if (PosX<=GetMonitorLeftmost(PosX, PosY)-100) { + // \x83E\x83B\x83\x93\x83h\x83E\x83T\x83C\x83Y\x82\xF0\x83Z\x83b\x83g + ::SetWindowPos(m_hWnd, HWND_TOP,0,0,WW,WH,SWP_NOMOVE); // \x92\x86\x89\x9B\x82Ɉړ\xAE\x82\xB7\x82\xE9 + CenterWindow(m_hWnd, NULL); + // \x88ʒu\x82\xF0\x95ۑ\xB6 RECT rcWnd; - CenterWindow(m_hWnd, NULL); GetWindowRect(&rcWnd); PosX = rcWnd.left; PosY = rcWnd.top; + } else { + // \x83E\x83B\x83\x93\x83h\x83E\x83T\x83C\x83Y\x82\xF0\x83Z\x83b\x83g + \x8Ew\x92\xE8\x88ʒu\x82ֈړ\xAE + ::SetWindowPos(m_hWnd, HWND_TOP,PosX,PosY,WW,WH, 0); } ::InvalidateRect(m_hWnd, NULL, TRUE);