From e7a450d2fdc99bd501e1af7dd7c16c477cfea75e Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期六, 15 三月 2025 11:56:44 +0800
Subject: [PATCH] 1.CimMessageClear(清除Cim消息)测试通过; 2.增加VCREanbleStep(启用/禁用)VCR;

---
 SourceCode/Bond/Servo/CPanelMaster.cpp |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPanelMaster.cpp b/SourceCode/Bond/Servo/CPanelMaster.cpp
index d30a62a..b27ea82 100644
--- a/SourceCode/Bond/Servo/CPanelMaster.cpp
+++ b/SourceCode/Bond/Servo/CPanelMaster.cpp
@@ -211,3 +211,22 @@
 
 	return nLevel;
 }
+
+SERVO::CEquipment* CPanelMaster::GetActiveEquipment()
+{
+	HTREEITEM hItem = m_treeCtrl.GetSelectedItem();
+	if (hItem == nullptr) return nullptr;
+
+	int nLevel = GetTreeItemLevel(hItem);
+	if (nLevel == 2) {
+		return (SERVO::CEquipment*)m_treeCtrl.GetItemData(hItem);
+	}
+	else if (nLevel == 3) {
+		SERVO::CStep* pStep = (SERVO::CStep*)m_treeCtrl.GetItemData(hItem);
+		if (pStep != nullptr) {
+			return pStep->getEquipment();
+		}
+	}
+
+	return nullptr;
+}

--
Gitblit v1.9.3