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 | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h index 76cf545..3c2fb64 100644 --- a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h +++ b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.h @@ -3,6 +3,10 @@ // #pragma once +#include "TopToolbar.h" +#include "PagePlcList.h" +#include "CMainContainer.h" +#include "CBaseView.h" // CBoounionPLCDlg 对话框 @@ -11,6 +15,22 @@ // 构造 public: 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; + // 对话框数据 #ifdef AFX_DESIGN_TIME @@ -31,4 +51,18 @@ afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() +public: + 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