From 3b557ae5d4bb96062d9ab66f877ca729f7891ffa Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期二, 21 一月 2025 14:35:59 +0800 Subject: [PATCH] 1.SECS通讯,实现S1F41,接收EAP的Command,解释出参数列表,并回复。具体指令(Stop, Abort, Pause, Resume等)需要和机器端确认相关逻辑。 --- SourceCode/Bond/Servo/ServoDlg.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/Servo/ServoDlg.h b/SourceCode/Bond/Servo/ServoDlg.h index 1353deb..2681c75 100644 --- a/SourceCode/Bond/Servo/ServoDlg.h +++ b/SourceCode/Bond/Servo/ServoDlg.h @@ -4,6 +4,9 @@ #pragma once #include "ServoGraph.h" +#include "BlButton.h" +#include "LogDlg.h" +#include "TerminalDisplayDlg.h" // CServoDlg 对话框 @@ -12,6 +15,23 @@ // 构造 public: CServoDlg(CWnd* pParent = NULL); // 标准构造函数 + + +public: + void ShowTerminalText(const char* pszText, unsigned int duration = -1); + +private: + void InitRxWindows(); + void Resize(); + void UpdateLogBtn(); + + +private: + IObserver* m_pObserver; + BOOL m_bShowLogWnd; + CLogDlg* m_pLogDlg; + CTerminalDisplayDlg* m_pTerminalDisplayDlg; + // 对话框数据 #ifdef AFX_DESIGN_TIME @@ -28,6 +48,8 @@ CServoGraph* m_pGraph; COLORREF m_crBkgnd; HBRUSH m_hbrBkgnd; + CBlButton m_btnLog; + // 生成的消息映射函数 virtual BOOL OnInitDialog(); @@ -40,4 +62,21 @@ afx_msg void OnBnClickedCancel(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnDestroy(); + afx_msg void OnBnClickedButtonLog(); + afx_msg void OnSize(UINT nType, int cx, int cy); + afx_msg void OnClose(); + afx_msg LRESULT OnLogDlgHide(WPARAM wParam, LPARAM lParam); + afx_msg void OnMoving(UINT fwSide, LPRECT pRect); + afx_msg void OnMove(int x, int y); + afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); + afx_msg void OnMenuFileSettings(); + afx_msg void OnUpdateMenuFileSettings(CCmdUI* pCmdUI); + afx_msg void OnMenuFileSecsTest(); + afx_msg void OnUpdateMenuFileSecsTest(CCmdUI* pCmdUI); + afx_msg void OnMenuWndLog(); + afx_msg void OnUpdateMenuWndLog(CCmdUI* pCmdUI); + afx_msg void OnMenuFileExit(); + afx_msg void OnUpdateMenuFileExit(CCmdUI* pCmdUI); + afx_msg void OnMenuHelpAbout(); + afx_msg void OnTimer(UINT_PTR nIDEvent); }; -- Gitblit v1.9.3