From f8ad0695ff2431cb90640be52b523d6434bdbf83 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 22 八月 2025 15:48:03 +0800
Subject: [PATCH] Merge branch 'LWQ' into liuyang

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

diff --git a/EdgeInspector_App/View/ViewMain_HWSetting.cpp b/EdgeInspector_App/View/ViewMain_HWSetting.cpp
index ed24d8b..dd8d68e 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")};
@@ -82,6 +82,9 @@
 
 	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_USE_SAVE_DL_IMAGE, m_pDlgHDSettingParm->m_bUse_SaveDLDefectImage);
+	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);
@@ -142,7 +145,7 @@
 
 	return TRUE;
 }
-// CViewHWSetting 皋矫瘤 贸府扁涝聪促.
+// CViewHWSetting 鐨嬬煫鐦� 璐稿簻鎵佹稘鑱績.
 
 
 void CViewMain_HWSetting::Init_LightGrid()
@@ -171,7 +174,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 +231,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 +809,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 +831,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