From c2d22fc8efd988294ff4a34fd3e31a9743803964 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 08 一月 2025 11:02:16 +0800
Subject: [PATCH] 1.PLC View的加入,关闭,关联等;

---
 SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h
index e6665ec..3c2fb64 100644
--- a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h
+++ b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h
@@ -5,6 +5,9 @@
 #pragma once
 #include "TopToolbar.h"
 #include "PagePlcList.h"
+#include "CMainContainer.h"
+#include "CBaseView.h"
+
 
 // CBoounionPLCDlg 对话框
 class CBoounionPLCDlg : public CDialogEx
@@ -14,8 +17,10 @@
 	CBoounionPLCDlg(CWnd* pParent = NULL);	// 标准构造函数
 
 private:
+	void InitRxWindows();
 	void Resize();
-
+	CBaseView* CreatePlcView(CPLC* pPlc);
+	void CloseView(CBaseView* pView);
 
 private:
 	COLORREF m_crBkgnd;
@@ -23,6 +28,8 @@
 	IObserver* m_pObserver;
 	CTopToolbar* m_pTopToolbar;
 	CPagePlcList* m_pPagePlcList;
+	CMainContainer* m_pMainContainer;
+	CBaseView* m_pActiveView;
 
 
 // 对话框数据
@@ -55,4 +62,7 @@
 	afx_msg void OnUpdateMenuFileExit(CCmdUI* pCmdUI);
 	afx_msg void OnMenuHelpAbout();
 	afx_msg LRESULT OnToolbarBtnClicked(WPARAM wParam, LPARAM lParam);
+	LRESULT OnViewActive(WPARAM wParam, LPARAM lParam);
+	LRESULT OnViewBtnClicked(WPARAM wParam, LPARAM lParam);
+	LRESULT OnViewBtnMenuItem(WPARAM wParam, LPARAM lParam);
 };

--
Gitblit v1.9.3