[Ttssh2-commit] [7939] 使用しなくなった SetDlgFonts() を削除

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 8月 11日 (日) 20:29:42 JST


Revision: 7939
          https://osdn.net/projects/ttssh2/scm/svn/commits/7939
Author:   zmatsuo
Date:     2019-08-11 20:29:41 +0900 (Sun, 11 Aug 2019)
Log Message:
-----------
使用しなくなった SetDlgFonts() を削除

Modified Paths:
--------------
    trunk/teraterm/common/dlglib.c
    trunk/teraterm/common/dlglib.h

-------------- next part --------------
Modified: trunk/teraterm/common/dlglib.c
===================================================================
--- trunk/teraterm/common/dlglib.c	2019-08-11 11:29:29 UTC (rev 7938)
+++ trunk/teraterm/common/dlglib.c	2019-08-11 11:29:41 UTC (rev 7939)
@@ -390,8 +390,8 @@
 	BYTE charset;
 } IsExistFontInfoA;
 
-int CALLBACK IsExistFontSubA(
-	ENUMLOGFONTA* lpelf, NEWTEXTMETRICA* lpntm,
+static int CALLBACK IsExistFontSubA(
+	const ENUMLOGFONTA* lpelf, const NEWTEXTMETRICA* lpntm,
 	int nFontType, LPARAM lParam)
 {
 	IsExistFontInfoA *info = (IsExistFontInfoA *)lParam;
@@ -435,22 +435,3 @@
 	ReleaseDC(NULL, hDC);
 	return info.found;
 }
-
-HFONT SetDlgFonts(HWND hDlg, const int nIDDlgItems[], int nIDDlgItemCount,
-                  const char *UILanguageFile, PCHAR key)
-{
-	HFONT hPrevFont = (HFONT)SendMessage(hDlg, WM_GETFONT, 0, 0);
-	LOGFONT logfont;
-	HFONT hNewFont;
-	if (key == NULL) key = "DLG_TAHOMA_FONT";
-	GetObject(hPrevFont, sizeof(LOGFONT), &logfont);
-	if (get_lang_font(key, hDlg, &logfont, &hNewFont, UILanguageFile)) {
-		int i;
-		for (i = 0 ; i < nIDDlgItemCount ; i++) {
-			const int nIDDlgItem = nIDDlgItems[i];
-			SendDlgItemMessage(hDlg, nIDDlgItem, WM_SETFONT, (WPARAM)hNewFont, MAKELPARAM(TRUE,0));
-		}
-	}
-	return hNewFont;
-}
-

Modified: trunk/teraterm/common/dlglib.h
===================================================================
--- trunk/teraterm/common/dlglib.h	2019-08-11 11:29:29 UTC (rev 7938)
+++ trunk/teraterm/common/dlglib.h	2019-08-11 11:29:41 UTC (rev 7939)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2005-2018 TeraTerm Project
+ * (C) 2005-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -89,8 +89,6 @@
 	DLGPROC lpDialogFunc);
 void SetDialogFont(const char *FontName, int FontHeight, int FontCharSet,
 				   const char *UILanguageFile, const char *Section, const char *Key);
-HFONT SetDlgFonts(HWND hDlg, const int nIDDlgItems[], int nIDDlgItemCount,
-				  const char *UILanguageFile, PCHAR key);
 BOOL IsExistFontA(const char *face, BYTE charset, BOOL strict);
 int GetFontPointFromPixel(HWND hWnd, int pixel);
 int GetFontPixelFromPoint(HWND hWnd, int point);


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