LAPTOP-SNT8I5JK\Boounion
2025-01-09 4656e074123feced4aa1691c53a4aff85514cffa
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
#pragma once
#include "CBaseView.h"
#include "PLC.h"
 
 
class CPlcView :public CBaseView
{
    DECLARE_DYNAMIC(CPlcView)
 
public:
    CPlcView(CWnd* pParent = nullptr);
    ~CPlcView();
 
public:
    virtual void SetContext(void* pContext);
 
private:
    void InitRxWindows();
    void Resize();
 
private:
    COLORREF m_crBkgnd;
    HBRUSH m_hbrBkgnd;
    IObserver* m_pObserver;
    CPLC* m_pPlc;
 
 
    // ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_VIEW_PLC};
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
    DECLARE_MESSAGE_MAP()
public:
    virtual BOOL OnInitDialog();
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg void OnDestroy();
    afx_msg void OnSize(UINT nType, int cx, int cy);
};