| | |
| | | // ViewHWSetting.cpp : 备泅 颇老涝聪促. |
| | | // ViewHWSetting.cpp : 备泅 颇老涝聪促. |
| | | // |
| | | |
| | | #include "stdafx.h" |
| | |
| | | #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")}; |
| | |
| | | |
| | | 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); |
| | |
| | | |
| | | return TRUE; |
| | | } |
| | | // CViewHWSetting 皋矫瘤 贸府扁涝聪促. |
| | | // CViewHWSetting 皋矫瘤 贸府扁涝聪促. |
| | | |
| | | |
| | | void CViewMain_HWSetting::Init_LightGrid() |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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; |