From b6e370081c3692bdfcdede5106d42734d2c6ef2f Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 13 一月 2025 10:58:48 +0800
Subject: [PATCH] 1.增加输入框超范围时的黄色提示;

---
 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