From 04dbc26747a70f7f97196805477e67b2597672b2 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 19 五月 2025 11:44:39 +0800
Subject: [PATCH] 1.更新“Dispatching mode对话框”两个按钮为Radio
---
SourceCode/Bond/Servo/CEquipmentPage3.cpp | 11 ++++++-----
SourceCode/Bond/Servo/CEquipmentPage3.h | 4 ++--
SourceCode/Bond/Servo/resource.h | 0
SourceCode/Bond/Servo/Servo.rc | 0
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/SourceCode/Bond/Servo/CEquipmentPage3.cpp b/SourceCode/Bond/Servo/CEquipmentPage3.cpp
index ed1aae9..00fe069 100644
--- a/SourceCode/Bond/Servo/CEquipmentPage3.cpp
+++ b/SourceCode/Bond/Servo/CEquipmentPage3.cpp
@@ -31,8 +31,8 @@
ON_WM_CTLCOLOR()
ON_WM_DESTROY()
ON_WM_SIZE()
- ON_BN_CLICKED(IDC_BUTTON_DISPATCHING_MODE_EAP, &CEquipmentPage3::OnBnClickedButtonDispatchingModeEap)
- ON_BN_CLICKED(IDC_BUTTON_DISPATCHING_MODE_LOCAL, &CEquipmentPage3::OnBnClickedButtonDispatchingModeLocal)
+ ON_BN_CLICKED(IDC_RADIO_DISPATCHING_EAP, &CEquipmentPage3::OnBnClickedRadioEap)
+ ON_BN_CLICKED(IDC_RADIO_DISPATCHING_LOCAL, &CEquipmentPage3::OnBnClickedRadioLocal)
END_MESSAGE_MAP()
@@ -81,7 +81,7 @@
// TODO: 鍦ㄦ澶勬坊鍔犳秷鎭鐞嗙▼搴忎唬鐮�
}
-void CEquipmentPage3::OnBnClickedButtonDispatchingModeEap()
+void CEquipmentPage3::OnBnClickedRadioEap()
{
ASSERT(m_pEquipment);
m_pEquipment->setDispatchingMode(SERVO::DISPATCHING_MODE::EAS,
@@ -99,10 +99,11 @@
});
}
-void CEquipmentPage3::OnBnClickedButtonDispatchingModeLocal()
+
+void CEquipmentPage3::OnBnClickedRadioLocal()
{
ASSERT(m_pEquipment);
- m_pEquipment->setDispatchingMode(SERVO::DISPATCHING_MODE::Local,
+ m_pEquipment->setDispatchingMode(SERVO::DISPATCHING_MODE::Local,
[&](int code) -> int {
if (code == WOK) {
LOGI("<CEquipment-%s>璁剧疆DispatchingMode鎴愬姛.", m_pEquipment->getName().c_str());
diff --git a/SourceCode/Bond/Servo/CEquipmentPage3.h b/SourceCode/Bond/Servo/CEquipmentPage3.h
index 9e6d3f6..0777b0b 100644
--- a/SourceCode/Bond/Servo/CEquipmentPage3.h
+++ b/SourceCode/Bond/Servo/CEquipmentPage3.h
@@ -33,6 +33,6 @@
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnBnClickedButtonDispatchingModeEap();
- afx_msg void OnBnClickedButtonDispatchingModeLocal();
+ afx_msg void OnBnClickedRadioEap();
+ afx_msg void OnBnClickedRadioLocal();
};
diff --git a/SourceCode/Bond/Servo/Servo.rc b/SourceCode/Bond/Servo/Servo.rc
index b65ab0d..d8792b7 100644
--- a/SourceCode/Bond/Servo/Servo.rc
+++ b/SourceCode/Bond/Servo/Servo.rc
Binary files differ
diff --git a/SourceCode/Bond/Servo/resource.h b/SourceCode/Bond/Servo/resource.h
index 96c0470..6f0240f 100644
--- a/SourceCode/Bond/Servo/resource.h
+++ b/SourceCode/Bond/Servo/resource.h
Binary files differ
--
Gitblit v1.9.3