[Ttssh2-commit] [7860] listboxをディスプレイの中央に表示する

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 7月 19日 (金) 23:33:34 JST


Revision: 7860
          https://osdn.net/projects/ttssh2/scm/svn/commits/7860
Author:   zmatsuo
Date:     2019-07-19 23:33:34 +0900 (Fri, 19 Jul 2019)
Log Message:
-----------
listboxをディスプレイの中央に表示する

- 修正前はステータスダイアログボックスの中央に表示

Modified Paths:
--------------
    trunk/teraterm/ttpmacro/ListDlg.cpp

-------------- next part --------------
Modified: trunk/teraterm/ttpmacro/ListDlg.cpp
===================================================================
--- trunk/teraterm/ttpmacro/ListDlg.cpp	2019-07-19 14:33:23 UTC (rev 7859)
+++ trunk/teraterm/ttpmacro/ListDlg.cpp	2019-07-19 14:33:34 UTC (rev 7860)
@@ -200,11 +200,11 @@
 	::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\x83E\x83B\x83\x93\x83h\x83E\x82̊O\x82\xC9-100\x88ȉ\xBA\x82̈ʒu\x82ɂ\xA0\x82\xE9\x8Fꍇ
+	// 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) {
 		// \x92\x86\x89\x9B\x82Ɉړ\xAE\x82\xB7\x82\xE9
 		RECT rcWnd;
-		CenterWindow(m_hWnd, m_hParentWnd);
+		CenterWindow(m_hWnd, NULL);
 		GetWindowRect(&rcWnd);
 		PosX = rcWnd.left;
 		PosY = rcWnd.top;


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