From 4981115416e00a561570e9467a9eca123dee07f1 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 07 一月 2025 11:33:04 +0800
Subject: [PATCH] 1.添加菜单;
---
SourceCode/Bond/BoounionPLC/PagePlcList.cpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/BoounionPLC/PagePlcList.cpp b/SourceCode/Bond/BoounionPLC/PagePlcList.cpp
index d883f2f..0f3a48c 100644
--- a/SourceCode/Bond/BoounionPLC/PagePlcList.cpp
+++ b/SourceCode/Bond/BoounionPLC/PagePlcList.cpp
@@ -94,4 +94,13 @@
{
m_treeCtrl.InsertItem("PLC1", nullptr, nullptr);
m_treeCtrl.InsertItem("PLC2", nullptr, nullptr);
-}
\ No newline at end of file
+}
+
+BOOL CPagePlcList::PreTranslateMessage(MSG* pMsg)
+{
+ if (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE) {
+ return TRUE;
+ }
+
+ return CDialogEx::PreTranslateMessage(pMsg);
+}
--
Gitblit v1.9.3