From e0b180a728b4cb091fbf76172658409806121b6f Mon Sep 17 00:00:00 2001 From: darker <mr.darker@163.com> Date: 星期四, 16 一月 2025 17:46:31 +0800 Subject: [PATCH] 1. 添加Robot移动标识 2. 添加Gdiplus模块 3. 添加Robot旋转的函数(未完成) --- SourceCode/Bond/Servo/ServoDlg.h | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/Servo/ServoDlg.h b/SourceCode/Bond/Servo/ServoDlg.h index 30bea0c..c3842e6 100644 --- a/SourceCode/Bond/Servo/ServoDlg.h +++ b/SourceCode/Bond/Servo/ServoDlg.h @@ -5,6 +5,7 @@ #pragma once #include "ServoGraph.h" #include "BlButton.h" +#include "LogDlg.h" // CServoDlg 对话框 @@ -18,6 +19,8 @@ private: void Resize(); void UpdateLogBtn(); + void UpdateRobotPosition(float percentage); + void RotateRobot(float angleInDegrees); // 对话框数据 @@ -30,7 +33,9 @@ private: + BOOL m_bIsRobotMoving; BOOL m_bShowLogWnd; + CLogDlg* m_pLogDlg; // 实现 protected: @@ -54,4 +59,19 @@ 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 BOOL OnEraseBkgnd(CDC* pDC); }; -- Gitblit v1.9.3