From d2e6f402c0705170c83cffef1b09bf3994a9127f Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期一, 13 一月 2025 16:56:39 +0800
Subject: [PATCH] Merge branch 'master' into liuyang

---
 SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
index 3da6b35..70c30d3 100644
--- a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
+++ b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
@@ -126,7 +126,10 @@
 						}
 						ASSERT(m_pActiveView);
 						if (m_pActiveView->GetContext() != (void*)pPlc) {
-							m_pActiveView->SetWindowText(pPlc->getName().c_str());
+							CString strTitle;
+							strTitle.Format(_T("%s[%s:%d]"), pPlc->getName().c_str(), pPlc->getIp().c_str(),
+								pPlc->getPort());
+							m_pActiveView->SetWindowText(strTitle);
 							m_pActiveView->SetContext(pPlc);
 							m_pActiveView->SendMessage(WM_NCPAINT, 0, 0);
 						}

--
Gitblit v1.9.3