From ccbda3e4f7ed430843fbc0190e8ee0d0f0e3a721 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 21 一月 2025 11:06:16 +0800
Subject: [PATCH] 1.SECS实现Off-Line和On-Line消息处理回调应用层,如何切换状态需待和机器端确定。
---
SourceCode/Bond/Servo/ServoDlg.h | 38 +++++++++++++++++++++++++++++++++++---
1 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/SourceCode/Bond/Servo/ServoDlg.h b/SourceCode/Bond/Servo/ServoDlg.h
index d305005..2681c75 100644
--- a/SourceCode/Bond/Servo/ServoDlg.h
+++ b/SourceCode/Bond/Servo/ServoDlg.h
@@ -5,6 +5,8 @@
#pragma once
#include "ServoGraph.h"
#include "BlButton.h"
+#include "LogDlg.h"
+#include "TerminalDisplayDlg.h"
// CServoDlg 对话框
@@ -14,6 +16,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
enum { IDD = IDD_SERVO_DIALOG };
@@ -22,9 +41,6 @@
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
-
-private:
- BOOL m_bShowLogWnd;
// 实现
protected:
@@ -47,4 +63,20 @@
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