[ttssh2-commit] [9733] プロパティーシートのok/cancel/helpボタンを多言語化

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 2月 8日 (火) 00:27:33 JST


Revision: 9733
          https://osdn.net/projects/ttssh2/scm/svn/commits/9733
Author:   zmatsuo
Date:     2022-02-08 00:27:33 +0900 (Tue, 08 Feb 2022)
Log Message:
-----------
プロパティーシートのok/cancel/helpボタンを多言語化

Modified Paths:
--------------
    trunk/teraterm/teraterm/addsetting.cpp

-------------- next part --------------
Modified: trunk/teraterm/teraterm/addsetting.cpp
===================================================================
--- trunk/teraterm/teraterm/addsetting.cpp	2022-02-07 15:27:23 UTC (rev 9732)
+++ trunk/teraterm/teraterm/addsetting.cpp	2022-02-07 15:27:33 UTC (rev 9733)
@@ -1741,8 +1741,14 @@
 	}
 	case PSCB_INITIALIZED:
 	{
+		static const DlgTextInfo TextInfos[] = {
+			{ IDOK, "BTN_OK" },
+			{ IDCANCEL, "BTN_CANCEL" },
+			{ IDHELP, "BTN_HELP" },
+		};
 		CAddSettingPropSheetDlg *self = gTTCPS;
 		self->m_hWnd = hWnd;
+		SetDlgTexts(hWnd, TextInfos, _countof(TextInfos), ts.UILanguageFile);
 		CenterWindow(hWnd, self->m_hParentWnd);
 		break;
 	}


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