LAPTOP-SNT8I5JK\Boounion
2025-07-28 bfe14e41fa5b07771d78af4511ba18d706bc23cc
SourceCode/Bond/Servo/CRobotCmdTestDlg.h
@@ -3,7 +3,7 @@
#include <afxrich.h>
// 定义命令函数指针类型(seq, armNo, getPos, getSlot, putPos, putSlot)
using CmdFunc = std::function<int(int, int, int, int, int, int)>;
using CmdFunc = std::function<int(int, int, int, int, int, int, SERVO::ONWRITED onWritedBlock)>;
// 输入控件状态
struct QuickCmdFieldMask {
@@ -35,8 +35,10 @@
protected:
   virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
   virtual BOOL OnInitDialog();
   afx_msg void OnCbnSelchangeComboCmdType();
   afx_msg void OnBnClickedButtonExecute();
   afx_msg void OnSelchangeComboCmdType();
   afx_msg void OnSelchangeComboGetPos();
   afx_msg void OnSelchangeComboPutPos();
   DECLARE_MESSAGE_MAP()
private:
@@ -46,6 +48,9 @@
   void TrimRichEditLineLimit(int maxLines = 100);
   void AppendLogLineRichStyled(const CString& content, COLORREF color = RGB(0, 0, 0));
   void HighlightAllMatches(const CString& strSearch, COLORREF clrHighlight = RGB(255, 165, 0));
   void UpdateSlotList(CComboBox* pComboDevice, CComboBox* pComboSlot);
   void UpdateArmList(CComboBox* pComboDevice, CComboBox* pComboArm);
   bool IsDualArmSupported(const CString& strDeviceName);
   // 控件
   CComboBox m_comboCmdType;