From 6c9115d3ae53708dc40507104c8043748f3d2845 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 06 三月 2025 16:05:22 +0800
Subject: [PATCH] 1.添加Eq面板。
---
SourceCode/Bond/Servo/CPanelMaster.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/Servo/CPanelMaster.cpp b/SourceCode/Bond/Servo/CPanelMaster.cpp
index a4233f6..014819d 100644
--- a/SourceCode/Bond/Servo/CPanelMaster.cpp
+++ b/SourceCode/Bond/Servo/CPanelMaster.cpp
@@ -180,7 +180,11 @@
LPNMTREEVIEW pNMTreeView = reinterpret_cast<LPNMTREEVIEW>(pNMHDR);
HTREEITEM hItem = pNMTreeView->itemNew.hItem;
int nLevel = GetTreeItemLevel(hItem);
- if (nLevel == 3) {
+ if (nLevel == 2) {
+ SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)m_treeCtrl.GetItemData(hItem);
+ theApp.m_model.notifyPtr(RX_CODE_SELECT_EQUIPMENT, pEquipment);
+ }
+ else if (nLevel == 3) {
SERVO::CStep* pStep = (SERVO::CStep*)m_treeCtrl.GetItemData(hItem);
theApp.m_model.notifyPtr(RX_CODE_SELECT_STEP, pStep);
}
--
Gitblit v1.9.3