[Ttssh2-commit] [7653] prnabortダイアログで、不要となったフォント設定処理が残っていたので削除

scmno****@osdn***** scmno****@osdn*****
2019年 5月 8日 (水) 01:46:27 JST


Revision: 7653
          https://osdn.net/projects/ttssh2/scm/svn/commits/7653
Author:   zmatsuo
Date:     2019-05-08 01:46:27 +0900 (Wed, 08 May 2019)
Log Message:
-----------
prnabortダイアログで、不要となったフォント設定処理が残っていたので削除

Modified Paths:
--------------
    trunk/teraterm/teraterm/prnabort.cpp
    trunk/teraterm/teraterm/prnabort.h

-------------- next part --------------
Modified: trunk/teraterm/teraterm/prnabort.cpp
===================================================================
--- trunk/teraterm/teraterm/prnabort.cpp	2019-05-07 16:45:58 UTC (rev 7652)
+++ trunk/teraterm/teraterm/prnabort.cpp	2019-05-07 16:46:27 UTC (rev 7653)
@@ -43,9 +43,6 @@
 		{ IDC_PRNABORT_PRINTING, "DLG_PRNABORT_PRINTING" }, 
 		{ IDCANCEL, "BTN_CANCEL" },
 	};
-	static const int FontIDs[] = {
-		IDC_PRNABORT_PRINTING, IDCANCEL
-	};
 
 	CPrnAbortDlg *self = (CPrnAbortDlg *)GetWindowLongPtr(hDlgWnd, DWLP_USER);
 
@@ -52,19 +49,15 @@
 	switch (msg) {
 	case WM_INITDIALOG:
 	{
-		CPrnAbortDlg *self = (CPrnAbortDlg *)lp;
+		self = (CPrnAbortDlg *)lp;
 		SetWindowLongPtr(hDlgWnd, DWLP_USER, (LONG_PTR)self);
 		SetDlgTexts(hDlgWnd, TextInfos, _countof(TextInfos), self->m_ts->UILanguageFile);
-		self->m_hNewFont =
-			SetDlgFonts(hDlgWnd, FontIDs, _countof(FontIDs),
-						self->m_ts->UILanguageFile, "DLG_SYSTEM_FONT");
 		return TRUE;
 	}
 
 	case WM_COMMAND:
 	{
-		WORD wID = GET_WM_COMMAND_ID(wp, lp);
-		const WORD wCMD = GET_WM_COMMAND_CMD(wp, lp);
+		const WORD wID = GET_WM_COMMAND_ID(wp, lp);
 		if (wID == IDOK) {
 			self->DestroyWindow();
 		}
@@ -115,7 +108,6 @@
 
 void CPrnAbortDlg::PostNcDestroy()
 {
-	::DeleteObject(m_hNewFont);
 	delete this;
 }
 

Modified: trunk/teraterm/teraterm/prnabort.h
===================================================================
--- trunk/teraterm/teraterm/prnabort.h	2019-05-07 16:45:58 UTC (rev 7652)
+++ trunk/teraterm/teraterm/prnabort.h	2019-05-07 16:46:27 UTC (rev 7653)
@@ -40,7 +40,6 @@
 	HWND GetSafeHwnd() const {return m_hWnd;}
 	BOOL Create(HINSTANCE hInstance, HWND hParent, PBOOL AbortFlag, PTTSet pts);
 	BOOL DestroyWindow();
-	HFONT m_hNewFont;
 
 private:
 	void OnCancel();


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