From 1dbe46cd9d0f181d08d5a69f72d8548628a13b9d Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期三, 16 七月 2025 17:13:50 +0800
Subject: [PATCH] 优化:显示在流程中解锁,并且把文件字符集统一替换成UTF-8(BOM)

---
 EdgeInspector_App/View/ViewMain_HWSetting.cpp |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/EdgeInspector_App/View/ViewMain_HWSetting.cpp b/EdgeInspector_App/View/ViewMain_HWSetting.cpp
index ed24d8b..888f978 100644
--- a/EdgeInspector_App/View/ViewMain_HWSetting.cpp
+++ b/EdgeInspector_App/View/ViewMain_HWSetting.cpp
@@ -1,4 +1,4 @@
-// ViewHWSetting.cpp : 备泅 颇老涝聪促.
+锘�// ViewHWSetting.cpp : 澶囨硡 棰囪�佹稘鑱績.
 //
 
 #include "stdafx.h"
@@ -8,7 +8,7 @@
 #include "Global_Define.h"
 #include "NewCellTypes\GridCellCombo.h"
 
-// CViewHWSetting 措拳 惑磊涝聪促.
+// CViewHWSetting 鎺嫵 鎯戠娑濊仾淇�.
 extern BOOL g_bUse_SaveAllDMP;
 const int LIGHT_COLUMN_COUNT = 4;
 const TCHAR* LIGHT_COLUMN_ITEM[LIGHT_COLUMN_COUNT] = {_T("ID"),_T("Type"),_T("Port&IP"),_T("Maker")};
@@ -83,6 +83,8 @@
 	DDX_Check(pDX,IDC_CHECK_USE_SAVE_DEBUG_IMAGE,m_pDlgHDSettingParm->m_bUse_SaveDebugImage);	
 	DDX_Check(pDX, IDC_CHECK_USE_SAVE_ALL_DMP, g_bUse_SaveAllDMP);
 
+	DDX_Check(pDX, IDC_CHECK_SAVE_RESULT_BY_HOUR, m_pDlgHDSettingParm->m_bSaveResultByHour);		// ly,2025.07.10
+
 	DDX_Check(pDX, IDC_CHECK_ENABLE_AUTO_COPY, m_pDlgHDSettingParm->m_bEnableAutoCopy);				// ly,2025.07.07
 	DDX_Text(pDX, IDC_EDIT_COPY_TOOL_EXE_PATH, m_pDlgHDSettingParm->m_strCopyToolExePath);
 	DDX_Text(pDX, IDC_EDIT_COPY_TOOL_CONFIG_PATH, m_pDlgHDSettingParm->m_strCopyToolConfigPath);
@@ -142,7 +144,7 @@
 
 	return TRUE;
 }
-// CViewHWSetting 皋矫瘤 贸府扁涝聪促.
+// CViewHWSetting 鐨嬬煫鐦� 璐稿簻鎵佹稘鑱績.
 
 
 void CViewMain_HWSetting::Init_LightGrid()
@@ -171,7 +173,7 @@
 	lf.lfItalic = 0;
 	lf.lfHeight = 14;
 	lf.lfWeight = FW_BOLD;
-	_tcscpy(lf.lfFaceName, _T("Arial"));
+	_tcscpy_s(lf.lfFaceName, LF_FACESIZE, _T("Arial"));
 
 	m_LightGrid.GetDefaultCell(TRUE, FALSE)->SetFont(&lf);
 	m_LightGrid.GetDefaultCell(FALSE, TRUE)->SetFont(&lf);
@@ -228,7 +230,7 @@
 	lf.lfItalic = 0;
 	lf.lfHeight = 14;
 	lf.lfWeight = FW_BOLD;
-	_tcscpy(lf.lfFaceName, _T("Arial"));
+	_tcscpy_s(lf.lfFaceName, LF_FACESIZE, _T("Arial"));
 
 	m_CameraGrid.GetDefaultCell(TRUE, FALSE)->SetFont(&lf);
 	m_CameraGrid.GetDefaultCell(FALSE, TRUE)->SetFont(&lf);
@@ -806,7 +808,7 @@
 void CViewMain_HWSetting::OnClickBrowseCopyToolConfig()
 {
 	CString strFilePath;
-	CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Config Files (*.ffs_real;*.json;*.xml)|*.ffs_real;*.json;*.xml||"), this);
+	CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Config Files (*.ffs_real;*.json;*.xml;*.ini;*.cfg)|*.ffs_real;*.json;*.xml;*.ini;*.cfg||"), this);
 	if (dlg.DoModal() == IDOK) {
 		strFilePath = dlg.GetPathName();
 		m_pDlgHDSettingParm->m_strCopyToolConfigPath = strFilePath;
@@ -828,7 +830,7 @@
 void CViewMain_HWSetting::OnClickBrowseDeleteToolConfig()
 {
 	CString strFilePath;
-	CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Config Files (*.ffs_real;*.json;*.xml;*.ini)|*.ffs_real;*.json;*.xml;*.ini||"), this);
+	CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Config Files (*.ffs_real;*.json;*.xml;*.ini;*.cfg)|*.ffs_real;*.json;*.xml;*.ini;*.cfg||"), this);
 	if (dlg.DoModal() == IDOK) {
 		strFilePath = dlg.GetPathName();
 		m_pDlgHDSettingParm->m_strDeleteToolConfigPath = strFilePath;

--
Gitblit v1.9.3