|
// 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();
|
};
|