| | |
| | | #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 { |
| | |
| | | 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: |
| | |
| | | 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; |