From d14420e7f85b5fe7289aafe6bef0c053dede3657 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期五, 16 一月 2026 11:20:39 +0800
Subject: [PATCH] 1.修复以下问题: CEID 校验恒通过:ceidDefined 返回 true,PauseEvent ID 不做有效性检查。Host 若下发无效 CEID,将被接受但运行时无法触发暂停,风险难以察觉。 建议的上线前防护 / 改进(无需真机也可先改) 2.软件侧警告id上抛;

---
 SourceCode/Bond/BondEq/View/AxisSettingsDlg.h |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/SourceCode/Bond/BondEq/View/AxisSettingsDlg.h b/SourceCode/Bond/BondEq/View/AxisSettingsDlg.h
index ed1e674..ef66b8f 100644
--- a/SourceCode/Bond/BondEq/View/AxisSettingsDlg.h
+++ b/SourceCode/Bond/BondEq/View/AxisSettingsDlg.h
@@ -4,6 +4,7 @@
 #include "BLLabel.h"
 #include "RegexEdit.h"
 #include "CPLC.h"
+#include "CBaseDlg.h"
 
 // 姣忛〉瀹氫綅鐐规樉绀轰釜鏁�
 #define AXIS_PAGE_SIZE	5
@@ -63,7 +64,7 @@
 	POSITION_5  // 瀹氫綅鐐�5
 };
 
-class CAxisSettingsDlg : public CDialogEx
+class CAxisSettingsDlg : public CBaseDlg
 {
 	DECLARE_DYNAMIC(CAxisSettingsDlg)
 
@@ -82,10 +83,6 @@
 
 private:
 	UINT FindIDByName(const CString& strControlID);
-	CFont* GetOrCreateFont(int nFontSize);
-	void SetDefaultFont();
-	void AdjustControls(float dScaleX, float dScaleY);
-	void AdjustControlFont(CWnd* pWnd, int nWidth, int nHeight);
 	void AdjustLabelFont(CBLLabel& label);
 	void SetLabelColor(CBLLabel& label, COLORREF color);
 	void SetLabelColorBasedOnState(CBLLabel& label, BOOL bState, COLORREF colorTrue, COLORREF colorFalse);
@@ -108,8 +105,6 @@
 
 private:
 	CPLC* m_pPLC;
-	int m_nInitialWidth;
-	int m_nInitialHeight;
 
 	// 褰撳墠閫変腑鐨勫畾浣嶉〉闈㈢储寮�
 	int m_currentPage;
@@ -123,10 +118,6 @@
 	CRegexEdit* m_pRegexEdit[EDIT_MAX];
 	CComboBox m_comboAxisNO;
 	CStatic m_staticAxisNO, m_staticAxisDescription, m_staticStartAddress;
-	//CEdit m_editManualSpeed, m_editAutoSpeed, m_editAccelerationTime, m_editDecelerationTime, m_editJogDistance;
-	
-	std::map<int, CRect> m_mapCtrlLayouts;
-	std::map<int, CFont*> m_mapFonts;
 
 	// 璇诲埌鐨勬暟鎹�
 	BOOL m_bSEV;
@@ -151,8 +142,6 @@
 	virtual BOOL OnInitDialog();
 	virtual BOOL PreTranslateMessage(MSG* pMsg);
 	afx_msg void OnSize(UINT nType, int cx, int cy);
-	afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
-	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
 	afx_msg void OnBnClickedButtonAxisLast();
 	afx_msg void OnBnClickedButtonAxisNext();
 	afx_msg void OnBnClickedButtonAxisAnchorPointGroup1();

--
Gitblit v1.9.3