chenluhua1980
2026-01-24 2a7efcf2a4bac5e7f9813975c87683ea09fb984e
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
 
// BEQDemoDlg.h : Í·Îļþ
//
 
#pragma once
 
#include "ColorStatic.h"
 
// CBEQDemoDlg ¶Ô»°¿ò
class CBEQDemoDlg : public CDialogEx
{
// ¹¹Ôì
public:
    CBEQDemoDlg(CWnd* pParent = NULL);    // ±ê×¼¹¹Ô캯Êý
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_BEQDEMO_DIALOG };
#endif
 
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
 
// ÊµÏÖ
protected:
    HICON m_hIcon;
    CEdit m_editLog;
    CColorStatic m_staticDoor1;
    CColorStatic m_staticDoor2;
    CColorStatic m_staticDoor3;
    CColorStatic m_staticDoor4;
    CColorStatic m_staticDoor5;
 
private:
    void AppendTextToLog(const CString& text);
    const char* ConverUint64ToTimeString(uint64_t time);
    void UpdateDoorStatus(CColorStatic& doorControl, bool isOpen);
    void HandleRemoteEqEventUpdate(BEQ::REMOTE_EQ_EVENT eventCode, void* pUnit);
 
    // Éú³ÉµÄÏûÏ¢Ó³É亯Êý
    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 OnBnClickedButtonTest1();
    afx_msg void OnBnClickedButtonTest2();
    afx_msg void OnBnClickedButtonTest3();
    afx_msg void OnBnClickedButtonSetState();
    afx_msg void OnBnClickedButtonSetState2();
    afx_msg void OnBnClickedButtonServoTest1();
    afx_msg void OnBnClickedButtonServoTest2();
    afx_msg void OnBnClickedButtonServoTest3();
};