From 2aff4ac73e77d803ba3656057187956258713dbd Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期三, 17 十二月 2025 17:32:32 +0800
Subject: [PATCH] 1.生产面板,菜单项等;
---
SourceCode/Bond/Servo/CPanelProduction.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/SourceCode/Bond/Servo/CPanelProduction.cpp b/SourceCode/Bond/Servo/CPanelProduction.cpp
index 7a56fe0..0f01b3f 100644
--- a/SourceCode/Bond/Servo/CPanelProduction.cpp
+++ b/SourceCode/Bond/Servo/CPanelProduction.cpp
@@ -7,8 +7,6 @@
#include "afxdialogex.h"
#include "Common.h"
#include "VerticalLine.h"
-#include <cstring>
-#include <vector>
// CPanelProduction dialog
@@ -120,6 +118,8 @@
void CPanelProduction::OnBnClickedButtonClose()
{
- ShowWindow(SW_HIDE);
- GetParent()->SendMessage(ID_MSG_PANEL_RESIZE, m_nPanelWidth, 0);
+ CWnd* pParent = GetParent();
+ if (pParent != nullptr) {
+ pParent->PostMessage(WM_COMMAND, ID_MENU_WND_TEST_PANEL, 0);
+ }
}
--
Gitblit v1.9.3