From 88c436d1759e0de804b142cecb21c26c841042ba Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期三, 21 一月 2026 11:35:33 +0800
Subject: [PATCH] 1.警告信息对话框显示;

---
 SourceCode/Bond/Servo/Servo.rc          |    2 +-
 SourceCode/Bond/Servo/AlarmPopupDlg.cpp |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/SourceCode/Bond/Servo/AlarmPopupDlg.cpp b/SourceCode/Bond/Servo/AlarmPopupDlg.cpp
index cc2a48d..5b7bc56 100644
--- a/SourceCode/Bond/Servo/AlarmPopupDlg.cpp
+++ b/SourceCode/Bond/Servo/AlarmPopupDlg.cpp
@@ -140,7 +140,7 @@
 
 void CAlarmPopupDlg::ShowNoAlarmControls(bool bShow)
 {
-	const int ids[] = { IDC_LABEL_NO_ALARM, IDC_POPUP_BTN_CLOSE };
+	const int ids[] = { IDC_LABEL_NO_ALARM };
 	for (int id : ids) {
 		if (auto* p = GetDlgItem(id)) {
 			p->ShowWindow(bShow ? SW_SHOW : SW_HIDE);
@@ -151,7 +151,6 @@
 void CAlarmPopupDlg::ShowAlarmControls(bool bShow)
 {
 	const int ids[] = {
-		IDC_BUTTON_PREV, IDC_BUTTON_NEXT,
 		IDC_LABEL_TITLE, IDC_ICON_ALARM, IDC_ICON_TITLE,
 		IDC_LABEL_LEVEL, IDC_LABEL_NAME,
 		IDC_LINE1, IDC_BUTTON_SOUND_OFF, IDC_BUTTON_ALARM_OFF,
diff --git a/SourceCode/Bond/Servo/Servo.rc b/SourceCode/Bond/Servo/Servo.rc
index 98fa6fd..7249afd 100644
--- a/SourceCode/Bond/Servo/Servo.rc
+++ b/SourceCode/Bond/Servo/Servo.rc
@@ -852,7 +852,7 @@
     PUSHBUTTON      "异常解除",IDC_BUTTON_ALARM_OFF,304,216,68,22,WS_DISABLED
     CONTROL         "Custom1",IDC_LINE2,"BYHorizontalLine",WS_TABSTOP,7,202,364,8
     LTEXT           "警告描述:",IDC_LABEL_DESCRIPTION,18,98,329,89
-    LTEXT           "当前没有警告", IDC_LABEL_NO_ALARM, 18, 98, 329, 89, NOT WS_VISIBLE
+    LTEXT           "当前没有警告", IDC_LABEL_NO_ALARM, 18, 98, 329, 89, SS_CENTER | SS_CENTERIMAGE | NOT WS_VISIBLE
 END
 
 

--
Gitblit v1.9.3