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
#pragma once
#include "ApredTreeCtrl.h"
 
 
// CPagePlcList ¶Ô»°¿ò
 
class CPagePlcList : public CDialogEx
{
    DECLARE_DYNAMIC(CPagePlcList)
 
public:
    CPagePlcList(CWnd* pParent = NULL);   // ±ê×¼¹¹Ô캯Êý
    virtual ~CPagePlcList();
 
 
private:
    void InitRxWindows();
    void ReadPLCList();
    HTREEITEM FindItem(CPLC* pPlc);
 
 
private:
    IObserver* m_pObserver;
    CApredTreeCtrl m_treeCtrl;
    COLORREF m_crBkgnd;
    HBRUSH m_hbrBkgnd;
    CFont m_fontNoPlc;
 
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_PAGE_PLC_LIST };
#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);
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    afx_msg LRESULT OnTreeClickItem(WPARAM wParam, LPARAM lParam);
    afx_msg void OnTimer(UINT_PTR nIDEvent);
};