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/BoounionPLC/AxisSettingsDlg.h | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/BoounionPLC/AxisSettingsDlg.h b/SourceCode/Bond/BoounionPLC/AxisSettingsDlg.h
index 0f0d198..240812f 100644
--- a/SourceCode/Bond/BoounionPLC/AxisSettingsDlg.h
+++ b/SourceCode/Bond/BoounionPLC/AxisSettingsDlg.h
@@ -72,6 +72,11 @@
CAxisSettingsDlg(CWnd* pParent = nullptr); // 鏍囧噯鏋勯�犲嚱鏁�
virtual ~CAxisSettingsDlg();
+
+private:
+ virtual BOOL PreAdjustControl(CWnd* pWnd);
+
+
// 瀵硅瘽妗嗘暟鎹�
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG_AXIS_SETTINGS };
@@ -98,9 +103,15 @@
void WriteAxisDataToPLC(int nAxisId);
void HandleAxisOperation(AxisOperationType eOpType, bool bPressed);
void ReadPLCDataToUI(int nAxisId);
+ void ShowTipText(const char* pszText, float sec);
+ void HideTip();
private:
CPLC* m_pPLC;
+ HBRUSH m_hbrTip;
+ HFONT m_hTipFont;
+ COLORREF m_crTipBack;
+ COLORREF m_crTipText;
// 褰撳墠閫変腑鐨勫畾浣嶉〉闈㈢储寮�
int m_currentPage;
@@ -161,4 +172,7 @@
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnClose();
DECLARE_MESSAGE_MAP()
+public:
+ afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
+ afx_msg void OnEnKillfocusEditAxisModitfyMicromentum();
};
--
Gitblit v1.9.3