From c6bfb4fc0801c4cb1f9dd2128df5f20d2e9cf27d Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 13 一月 2025 11:33:36 +0800
Subject: [PATCH] 1.PLC名字显示,按钮边框等;
---
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