From 4f6bc5f42a956f34e8149f9e2b5873b3aa614212 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 10 九月 2025 15:39:52 +0800
Subject: [PATCH] 1.处理行的颜色问题;

---
 SourceCode/Bond/Servo/CPageGlassList.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGlassList.cpp b/SourceCode/Bond/Servo/CPageGlassList.cpp
index 501a602..1a4cabb 100644
--- a/SourceCode/Bond/Servo/CPageGlassList.cpp
+++ b/SourceCode/Bond/Servo/CPageGlassList.cpp
@@ -230,7 +230,7 @@
 		m_listCtrl.SetItemText(index, 10, SERVO::CServoUtilsTool::getInspResultText((SERVO::InspResult)r.aoiResult).c_str());
 		m_listCtrl.SetItemText(index, 11, r.path.c_str());
 		m_listCtrl.SetItemText(index, 12, r.params.c_str());
-		m_listCtrl.SetItemColor(index, RGB(0, 0, 0), RGB(255, 255, 0));
+		m_listCtrl.SetItemColor(index, RGB(0, 0, 0), index % 2 == 0 ? RGB(255, 255, 255) : RGB(235, 235, 235));
 
 		// 娴嬭瘯鍙嶅簭鍒楀寲
 		/*
@@ -552,6 +552,7 @@
 void CPageGlassList::InsertWipRow(SERVO::CGlass* pGlass)
 {
 	int index = m_listCtrl.InsertItem(0, "");
+	m_listCtrl.SetItemColor(index, RGB(0, 0, 0), RGB(201, 228, 180));
 	UpdateWipRow(index, pGlass);
 }
 
@@ -559,7 +560,6 @@
 {
 	ASSERT(index < m_listCtrl.GetItemCount());
 	m_listCtrl.SetItemData(index, (DWORD_PTR)pGlass);
-	m_listCtrl.SetItemColor(index, RGB(0, 0, 0), RGB(255, 255, 255));
 	m_listCtrl.SetItemText(index, 2, std::to_string(pGlass->getCassetteSequenceNo()).c_str());
 	m_listCtrl.SetItemText(index, 3, std::to_string(pGlass->getJobSequenceNo()).c_str());
 	m_listCtrl.SetItemText(index, 4, pGlass->getID().c_str());

--
Gitblit v1.9.3