From 95ab46e7acc80e11494f3c3796c571f77c83ed41 Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期三, 04 六月 2025 11:53:22 +0800 Subject: [PATCH] 1. 添加搬运数据到数据库 2. 添加秒级的时间戳(毫秒级使用time_t可能是负数,因为有符号),防止使用strftime闪退 3. 实时更新搬运记录界面 --- SourceCode/Bond/Servo/ServoDlg.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SourceCode/Bond/Servo/ServoDlg.h b/SourceCode/Bond/Servo/ServoDlg.h index b38bd30..ee43ac3 100644 --- a/SourceCode/Bond/Servo/ServoDlg.h +++ b/SourceCode/Bond/Servo/ServoDlg.h @@ -14,6 +14,8 @@ #include "CPageGraph1.h" #include "CPageGraph2.h" #include "TopToolbar.h" +#include "CMyStatusbar.h" +#include "CRobotTaskDlg.h" // CServoDlg 对话框 @@ -31,17 +33,17 @@ void InitRxWindows(); void Resize(); void ShowChildPage(int index); - + CString& GetRuntimeFormatText(CString& strText, const char* pszSuffix); private: IObserver* m_pObserver; CTerminalDisplayDlg* m_pTerminalDisplayDlg; + CRobotTaskDlg* m_pRobotTaskDlg; CPageGraph1* m_pPageGraph1; CPageGraph2* m_pPageGraph2; CPageRecipe* m_pPageRecipe; CPageAlarm* m_pPageAlarm; CPageLog* m_pPageLog; - // 对话框数据 #ifdef AFX_DESIGN_TIME @@ -61,6 +63,7 @@ CPanelMaster* m_pPanelMaster; CPanelEquipment* m_pPanelEquipment; CPanelAttributes* m_pPanelAttributes; + CMyStatusbar* m_pMyStatusbar; // 生成的消息映射函数 virtual BOOL OnInitDialog(); @@ -93,4 +96,5 @@ afx_msg LRESULT OnPanelResize(WPARAM wParam, LPARAM lParam); afx_msg void OnTabSelChanged(NMHDR* nmhdr, LRESULT* result); LRESULT OnToolbarBtnClicked(WPARAM wParam, LPARAM lParam); + LRESULT OnStatusbarBtnClicked(WPARAM wParam, LPARAM lParam); }; -- Gitblit v1.9.3