From c049c2fdf2f5722e460d0dc5c7597bf819f2e2e5 Mon Sep 17 00:00:00 2001
From: LWQ <1806950222@qq.com>
Date: 星期四, 07 八月 2025 18:18:56 +0800
Subject: [PATCH] 添加缺陷原图保存功能

---
 EdgeInspector_App/MainFrm.cpp |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/EdgeInspector_App/MainFrm.cpp b/EdgeInspector_App/MainFrm.cpp
index c9a5675..9ffc2e9 100644
--- a/EdgeInspector_App/MainFrm.cpp
+++ b/EdgeInspector_App/MainFrm.cpp
@@ -1,5 +1,5 @@
-
-// MainFrm.cpp : CMainFrame 努贰胶狼 备泅
+锘�
+// MainFrm.cpp : CMainFrame 鍔窗鑳剁嫾 澶囨硡
 //
 
 #include "stdafx.h"
@@ -29,7 +29,7 @@
 	ON_WM_GETMINMAXINFO()
 END_MESSAGE_MAP()
 
-// CMainFrame 积己/家戈
+// CMainFrame 绉繁/瀹舵垐
 
 CMainFrame::CMainFrame()
 {
@@ -77,10 +77,10 @@
 	return TRUE;
 }
 
-// CMainFrame 皋矫瘤 贸府扁
+// CMainFrame 鐨嬬煫鐦� 璐稿簻鎵�
 void CMainFrame::OnGetMinMaxInfo(MINMAXINFO* lpMMI)
 {
-	// TODO: 咯扁俊 皋矫瘤 贸府扁 内靛甫 眠啊 棺/肚绰 扁夯蔼阑 龋免钦聪促.
+	// TODO: 鍜墎淇� 鐨嬬煫鐦� 璐稿簻鎵� 鍐呴潧鐢� 鐪犲晩 妫�/鑲氱话 鎵佸く钄奸槕 榫嬪厤閽﹁仾淇�.
 	//CFrameWndEx::OnGetMinMaxInfo(lpMMI);
 
 	lpMMI->ptMinTrackSize.x = TOTAL_WINDOW_SIZE_X;
@@ -90,7 +90,7 @@
 	lpMMI->ptMaxTrackSize.y = TOTAL_WINDOW_SIZE_Y;
 }
 
-// CMainFrame 柳窜
+// CMainFrame 鏌崇獪
 
 #ifdef _DEBUG
 void CMainFrame::AssertValid() const
@@ -105,7 +105,7 @@
 #endif //_DEBUG
 
 
-// CMainFrame 皋矫瘤 贸府扁
+// CMainFrame 鐨嬬煫鐦� 璐稿簻鎵�
 void CMainFrame::SetView(CEdgeInspector_AppView	*pView)
 {
 	m_pView = pView;
@@ -200,7 +200,7 @@
 	if (PathFileExists(strExePath) && PathFileExists(strConfigPath)) {
 		LPCTSTR pszExeName = PathFindFileName(strExePath);
 
-		// 去掉 .exe,并杀死进程
+		// 鍘绘帀 .exe锛屽苟鏉�姝昏繘绋�
 		TCHAR szNameWithoutExt[MAX_PATH] = { 0 };
 		_tcscpy_s(szNameWithoutExt, pszExeName);
 		PathRemoveExtension(szNameWithoutExt);
@@ -220,7 +220,7 @@
 	if (PathFileExists(strExePath) && PathFileExists(strConfigPath)) {
 		LPCTSTR pszExeName = PathFindFileName(strExePath);
 
-		// 去掉 .exe,并杀死进程
+		// 鍘绘帀 .exe锛屽苟鏉�姝昏繘绋�
 		TCHAR szNameWithoutExt[MAX_PATH] = { 0 };
 		_tcscpy_s(szNameWithoutExt, pszExeName);
 		PathRemoveExtension(szNameWithoutExt);
@@ -307,7 +307,7 @@
 {
 	m_strReserveRecipe.Empty();
 
-	if(!IsScanNow())		// 八荤 吝
+	if(!IsScanNow())		// 鍏崵 鍚�
 	{				
 		if(LoadGlassRecipe(strRecipe,TRUE) == TRUE)
 		{
@@ -331,8 +331,7 @@
 
 BOOL CMainFrame::IV2M_SaveFullImage(CString strPath,int iSide,CPoint ptStart,int nLength)
 {
-	if(IsScanNow())
-	{
+	if(IsScanNow()) {
 		g_pLog->DisplayMessage(_T("Doing Inspection"));
 		return TRUE;
 	}
@@ -341,7 +340,7 @@
 
 	//SetSlashText(GLOBAL_DEFINE::emText, _T("Image Save Start"), RGB(0,0,0));
 
-	BOOL bRet = SaveFullImage(strPath,iSide,ptStart,nLength);
+	BOOL bRet = SaveFullImage(strPath, iSide, ptStart, nLength);
 
 	SetSlashText(GLOBAL_DEFINE::emText, strPath, RGB(0,0,0));
 
@@ -511,7 +510,7 @@
 	g_pBase->m_eProcessMode = PROC_MODE_SIMULATION_ONESIDE;
 	m_eManualInspectSide = eDim;
 
-	// 烙矫肺 阜澜
+	// 鐑欑煫鑲� 闃滄緶
 	//return TRUE;
 
 	AfxBeginThread(ManualInspectProcess,this);

--
Gitblit v1.9.3