[Ttssh2-commit] [8541] 9xで動作するよう修正

scmno****@osdn***** scmno****@osdn*****
2020年 2月 16日 (日) 23:55:19 JST


Revision: 8541
          https://osdn.net/projects/ttssh2/scm/svn/commits/8541
Author:   zmatsuo
Date:     2020-02-16 23:55:19 +0900 (Sun, 16 Feb 2020)
Log Message:
-----------
9xで動作するよう修正

- 9xの場合次のAPIは使用しない(compat_win)
  - SendMessageW
  - SendDlgItemMessageW
  - GetWindowTextW
  - GetWindowTextLengthW
- layer_for_unicode
  - SendMessage(CB_INSERTSTRING)が処理できるようにした

Modified Paths:
--------------
    trunk/teraterm/common/compat_win.cpp
    trunk/teraterm/common/layer_for_unicode.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/compat_win.cpp
===================================================================
--- trunk/teraterm/common/compat_win.cpp	2020-02-13 15:13:26 UTC (rev 8540)
+++ trunk/teraterm/common/compat_win.cpp	2020-02-16 14:55:19 UTC (rev 8541)
@@ -243,6 +243,10 @@
 		pCreateWindowExW = NULL;
 		pRegisterClassW = NULL;
 		pDefWindowProcW = NULL;
+		pSendMessageW = NULL;
+		pSendDlgItemMessageW = NULL;
+		pGetWindowTextW = NULL;
+		pGetWindowTextLengthW = NULL;
 	}
 
 	// GetConsoleWindow\x93\xC1\x95ʏ\x88\x97\x9D

Modified: trunk/teraterm/common/layer_for_unicode.cpp
===================================================================
--- trunk/teraterm/common/layer_for_unicode.cpp	2020-02-13 15:13:26 UTC (rev 8540)
+++ trunk/teraterm/common/layer_for_unicode.cpp	2020-02-16 14:55:19 UTC (rev 8541)
@@ -205,6 +205,7 @@
 	LRESULT retval;
 	switch(Msg) {
 	case CB_ADDSTRING:
+	case CB_INSERTSTRING:
 	case LB_ADDSTRING:
 	case LB_INSERTSTRING: {
 		char *strA = ToCharW((wchar_t *)lParam);


Ttssh2-commit メーリングリストの案内