[Ttssh2-commit] [7661] ttpmacroのダイアログフォントを従来と同一にした

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 5月 11日 (土) 01:04:30 JST


Revision: 7661
          https://osdn.net/projects/ttssh2/scm/svn/commits/7661
Author:   zmatsuo
Date:     2019-05-11 01:04:30 +0900 (Sat, 11 May 2019)
Log Message:
-----------
ttpmacroのダイアログフォントを従来と同一にした

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

-------------- next part --------------
Modified: trunk/teraterm/ttpmacro/ttmacro.cpp
===================================================================
--- trunk/teraterm/ttpmacro/ttmacro.cpp	2019-05-09 03:44:14 UTC (rev 7660)
+++ trunk/teraterm/ttpmacro/ttmacro.cpp	2019-05-10 16:04:30 UTC (rev 7661)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2006-2017 TeraTerm Project
+ * (C) 2006-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -77,8 +77,9 @@
 	if (pSetThreadDpiAwarenessContext) {
 		pSetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
 	}
-	// messagebox\x82̃t\x83H\x83\x93\x83g\x82ɐݒ肷\x82\xE9
-	SetDialogFont(NULL, NULL, NULL, NULL);
+
+	// UILanguageFile\x82\xCC "Tera Term" \x83Z\x83N\x83V\x83\x87\x83\x93 "DLG_SYSTEM_FONT" \x82̃t\x83H\x83\x93\x83g\x82ɐݒ肷\x82\xE9
+	SetDialogFont(NULL, UILanguageFile, "Tera Term", "DLG_SYSTEM_FONT");
 }
 
 // TTMACRO main engine
@@ -101,12 +102,6 @@
 	return Continue;
 }
 
-/////////////////////////////////////////////////////////////////////////////
-
-// CCtrlApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,
                    LPSTR lpszCmdLine, int nCmdShow)
 {
@@ -118,9 +113,9 @@
 	_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
 #endif
 
-	init();
 //	InitCommonControls();
 	GetUILanguageFile(UILanguageFile, sizeof(UILanguageFile));
+	init();
 
 	Busy = TRUE;
 	pCCtrlWindow = new CCtrlWindow();
@@ -130,7 +125,7 @@
 	HWND hWnd = pCCtrlWindow->GetSafeHwnd();
 	CtrlWnd = hWnd;
 
-	//////////////////////////////////////////////////////////////////////
+	// message pump
 	MSG msg;
 	while (GetMessage(&msg, NULL, 0, 0)) {
 


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