LAPTOP-T815PCOQ\25526
2024-11-15 f5c4a7f3bce165fe2c8c6d934f0f49a363a2ea60
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
 
// McDemoDlg.h : Í·Îļþ
//
 
#pragma once
 
 
// CMcDemoDlg ¶Ô»°¿ò
class CMcDemoDlg : public CDialogEx
{
// ¹¹Ôì
public:
    CMcDemoDlg(CWnd* pParent = NULL);    // ±ê×¼¹¹Ô캯Êý
    void AppendLog(CString strText);
    void AppendLog(char* szMessage, ...);
    void DataToHexString(const char* pData, const int size, CString& strOut);
    int HexStringToData(CString& strHex, char* pszBuffer, const int nBufferSize);
    void UpdateUISecsion1();
    void UpdateUISecsion2();
    void UpdateUISecsion3();
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_MCDEMO_DIALOG };
#endif
 
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
 
// ÊµÏÖ
protected:
    HICON m_hIcon;
    McChannelListener m_mcChannellistener;
    IMcChannel* m_pChannel;
 
    // Éú³ÉµÄÏûÏ¢Ó³É亯Êý
    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 OnBnClickedButtonCreate();
    afx_msg void OnBnClickedButtonSend();
    afx_msg void OnBnClickedButtonClose();
    afx_msg void OnBnClickedButtonDestroy();
    afx_msg void OnBnClickedButtonRead();
    afx_msg void OnBnClickedButtonRawdata();
    afx_msg void OnBnClickedButtonWrite();
    afx_msg void OnBnClickedButtonReadBit();
    afx_msg void OnBnClickedCheckWriteBitValue();
    afx_msg void OnBnClickedButtonWriteBit();
    afx_msg void OnBnClickedButtonReadDword();
    afx_msg void OnBnClickedButtonWriteDword();
    afx_msg void OnTimer(UINT_PTR nIDEvent);
};