⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 purposedlg.h

📁 pc和松下触摸屏通讯(general purpose)协议
💻 H
字号:
// purposeDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_PURPOSEDLG_H__7B5B2BF6_EE62_4D96_A2CA_BF20471DC7D5__INCLUDED_)
#define AFX_PURPOSEDLG_H__7B5B2BF6_EE62_4D96_A2CA_BF20471DC7D5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CPurposeDlg dialog

class CPurposeDlg : public CDialog
{
// Construction
public:
	int String2Hex(CString str,unsigned char *data);
	void ChangeTo(unsigned char *data,unsigned int loc);
	unsigned char rxdata[100];
	unsigned char txdata[100];
	void BCC(unsigned char *data,unsigned int lenth);
	char ConvertHexChar(char ch);
	int String2Hex(CString str, CByteArray &senddata);
	CPurposeDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CPurposeDlg)
	enum { IDD = IDD_PURPOSE_DIALOG };
	CButton	m_ctrlHexDisplay;
	CButton	m_ctrlHexSend;
	CMSComm	m_ctrlComm;
	CString	m_strRXData;
	CString	m_strTXData;
	CString	m_ReadAddr;
	CString	m_ReadCommand;
	CString	m_ReadData;
	CString	m_ReadLen;
	CString	m_SendAddr;
	CString	m_SendCommand;
	CString	m_SendData;
	CString	m_SendLen;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPurposeDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CPurposeDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnComm();
	afx_msg void OnSend();
	afx_msg void OnClrRead();
	afx_msg void OnClrSend();
	afx_msg void OnSendChange();
	afx_msg void OnReadChange();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PURPOSEDLG_H__7B5B2BF6_EE62_4D96_A2CA_BF20471DC7D5__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -