[Ttssh2-commit] [8305] SetWindowText()を削除

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 10月 15日 (火) 01:13:43 JST


Revision: 8305
          https://osdn.net/projects/ttssh2/scm/svn/commits/8305
Author:   zmatsuo
Date:     2019-10-15 01:13:43 +0900 (Tue, 15 Oct 2019)
Log Message:
-----------
SetWindowText()を削除

- WM_PAINTで描画するため

Modified Paths:
--------------
    trunk/teraterm/common/tipwin.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/tipwin.cpp
===================================================================
--- trunk/teraterm/common/tipwin.cpp	2019-10-14 16:13:29 UTC (rev 8304)
+++ trunk/teraterm/common/tipwin.cpp	2019-10-14 16:13:43 UTC (rev 8305)
@@ -280,13 +280,16 @@
 	self->str = _tcsdup(str);
 	CalcStrRect();
 
+	// \x83E\x83B\x83\x93\x83h\x83E\x82̃T\x83C\x83Y\x82͕\xB6\x8E\x9A\x83T\x83C\x83Y+\x8D\xB6\x89E(\x8F㉺)\x82̃t\x83\x8C\x81[\x83\x80
 	const int str_width = self->str_rect.right - self->str_rect.left;
 	const int str_height = self->str_rect.bottom - self->str_rect.top;
-	SetWindowText(tWin->tip_wnd, str);
+	const int win_width = str_width + TIP_WIN_FRAME_WIDTH * 2;
+	const int win_height = str_height + TIP_WIN_FRAME_WIDTH * 2;
 	SetWindowPos(tWin->tip_wnd, NULL,
-				 0, 0,
-				 str_width + TIP_WIN_FRAME_WIDTH * 2, str_height + TIP_WIN_FRAME_WIDTH * 2,
+				 0, 0, win_width, win_height,
 				 SWP_NOZORDER | SWP_NOMOVE | SWP_NOACTIVATE);
+
+	// WM_PAINT\x82ŕ`\x89悷\x82\xE9
 	InvalidateRect(tWin->tip_wnd, NULL, FALSE);
 }
 


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