mrDarker
2025-10-22 e8a27bb203fe2aff70390a5eca002d7438da9b0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
 
// BondEqDlg.h : Í·Îļþ
//
 
#pragma once
#include "CPanelProject.h"
#include "CMainContainer.h"
#include "CHomeDialog.h"
#include "CBaseView.h"
#include "CRemoteEqView.h"
#include "TopToolbar.h"
#include "CComponentPLCDlg.h"
#include "AlarmPopupDlg.h"
 
 
// CBondEqDlg ¶Ô»°¿ò
class CBondEqDlg : public CDialogEx
{
// ¹¹Ôì
public:
    CBondEqDlg(CWnd* pParent = NULL);    // ±ê×¼¹¹Ô캯Êý
 
private:
    void InitRxWindows();
    void Resize();
    void CloseView(CBaseView* pView);
    void CloseView(CComponentDlg* pView);
    CHomeDialog* CreateHomeDlg();
    CBaseView* CreateRemoteEqView(BEQ::IRemoteEquipment* pEquipment);
    CComponentPLCDlg* CreateComponentPLCDlg(CComponent* pComponent);
    void UpdateLoginStatus();
    void AlarmOn();
    void AlarmOff();
 
private:
    COLORREF m_crBkgnd;
    HBRUSH m_hbrBkgnd;
    IObserver* m_pObserver;
    CTopToolbar* m_pTopToolbar;
    CMainContainer* m_pMainContainer;
    CPanelProject* m_pPanelProject;
    CHomeDialog* m_pHomeDialog;
    CBaseView* m_pActiveView;
    CComponentDlg* m_pActiveComponentDlg;
    CAlarmPopupDlg* m_pAlarmWnd;
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_BONDEQ_DIALOG };
#endif
 
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
 
// ÊµÏÖ
protected:
    HICON m_hIcon;
 
    // Éú³ÉµÄÏûÏ¢Ó³É亯Êý
    virtual BOOL OnInitDialog();
    afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
    afx_msg void OnPaint();
    afx_msg HCURSOR OnQueryDragIcon();
    DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnClose();
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg void OnDestroy();
    afx_msg void OnSize(UINT nType, int cx, int cy);
    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();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    LRESULT OnViewActive(WPARAM wParam, LPARAM lParam);
    LRESULT OnViewBtnClicked(WPARAM wParam, LPARAM lParam);
    LRESULT OnViewBtnMenuItem(WPARAM wParam, LPARAM lParam);
    LRESULT OnToolbarBtnClicked(WPARAM wParam, LPARAM lParam);
    afx_msg void OnTimer(UINT_PTR nIDEvent);
};