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 | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h index e2a2da9..3c2fb64 100644 --- a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h +++ b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h @@ -4,6 +4,9 @@ #pragma once #include "TopToolbar.h" +#include "PagePlcList.h" +#include "CMainContainer.h" +#include "CBaseView.h" // CBoounionPLCDlg 对话框 @@ -14,14 +17,19 @@ CBoounionPLCDlg(CWnd* pParent = NULL); // 标准构造函数 private: + void InitRxWindows(); void Resize(); - + CBaseView* CreatePlcView(CPLC* pPlc); + void CloseView(CBaseView* pView); private: COLORREF m_crBkgnd; HBRUSH m_hbrBkgnd; IObserver* m_pObserver; CTopToolbar* m_pTopToolbar; + CPagePlcList* m_pPagePlcList; + CMainContainer* m_pMainContainer; + CBaseView* m_pActiveView; // 对话框数据 @@ -47,4 +55,14 @@ afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); + afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); + afx_msg void OnMenuFileSettings(); + afx_msg void OnUpdateMenuFileSettings(CCmdUI* pCmdUI); + afx_msg void OnMenuFileExit(); + 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