From cb3d913e147acce92bfacc34dab441abb9ab8735 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 04 三月 2025 16:24:52 +0800
Subject: [PATCH] 1.属性页面板增加关闭按钮,关闭时隐藏,默认隐藏。

---
 SourceCode/Bond/Servo/ServoDlg.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoDlg.cpp b/SourceCode/Bond/Servo/ServoDlg.cpp
index f3d2cd5..922f768 100644
--- a/SourceCode/Bond/Servo/ServoDlg.cpp
+++ b/SourceCode/Bond/Servo/ServoDlg.cpp
@@ -173,6 +173,10 @@
 					ASSERT(pStep);
 					ASSERT(m_pPanelAttributes);
 					m_pPanelAttributes->loadDataFromStep(pStep);
+					if (!m_pPanelAttributes->IsWindowVisible()) {
+						m_pPanelAttributes->ShowWindow(SW_SHOW);
+						Resize();
+					}
 				}
 			}
 
@@ -316,7 +320,7 @@
 	m_pPanelMaster->ShowWindow(SW_SHOW);
 	m_pPanelAttributes = new CPanelAttributes();
 	m_pPanelAttributes->Create(IDD_PANEL_ATTRIBUTES, this);
-	m_pPanelAttributes->ShowWindow(SW_SHOW);
+	// m_pPanelAttributes->ShowWindow(SW_SHOW);
 
 
 
@@ -782,7 +786,7 @@
 		x += nPanelWidth;
 	}
 
-	if (m_pPanelAttributes != nullptr) {
+	if (m_pPanelAttributes != nullptr && m_pPanelAttributes->IsWindowVisible()) {
 		nPanelWidth = m_pPanelAttributes->getPanelWidth();
 		m_pPanelAttributes->MoveWindow(x, y, nPanelWidth, rcClient.Height());
 		x += nPanelWidth;

--
Gitblit v1.9.3