📄 e2prom_1581dlg.h
字号:
// E2PROM_1581Dlg.h : header file
//
#if !defined(AFX_E2PROM_1581DLG_H__45B29DF7_0EE0_4B73_81B0_6D72F064A28D__INCLUDED_)
#define AFX_E2PROM_1581DLG_H__45B29DF7_0EE0_4B73_81B0_6D72F064A28D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CE2PROM_1581Dlg dialog
#include "resource.h"
#define BUFFER_LEN 64
class CE2PROM_1581Dlg;
typedef struct _THREADPARAM
{
CE2PROM_1581Dlg* testDlg;
unsigned char buffer[BUFFER_LEN];
unsigned char startaddr;
int length;
}THREADPARAM;
class CE2PROM_1581Dlg : public CDialog
{
// Construction
public:
CE2PROM_1581Dlg(CWnd* pParent = NULL); // standard constructor
public:
void UpdateReadData();
void EnableButton(bool clearread,bool read,bool clearwrirte,bool write);
int CheckBoard();
int strtodata(unsigned char *str,unsigned char* data,int len,int flag=1);//字符串转换为数据流
int chartoint(unsigned char chr,unsigned char *cint);//char到int型转换
THREADPARAM m_readparam;
THREADPARAM m_writeparam;
THREADPARAM m_ControlIn;
// Dialog Data
//{{AFX_DATA(CE2PROM_1581Dlg)
enum { IDD = IDD_E2PROM_1581_DIALOG };
CString m_strReadData;
CString m_strWriteData;
int m_nEditReadLength;
int m_nEditWritestartAddr;
int m_nEditReadstartAddr;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CE2PROM_1581Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
afx_msg BOOL OnDeviceChange( UINT nEventType, DWORD dwData );
// Generated message map functions
//{{AFX_MSG(CE2PROM_1581Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnButtonClearread();
afx_msg void OnButtonRead();
afx_msg void OnButtonClearwrite();
afx_msg void OnButtonWrite();
afx_msg void OnChangeEditReadlength();
afx_msg void OnChangeEditReadstartaddr();
afx_msg void OnChangeEditWritestartaddr();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_E2PROM_1581DLG_H__45B29DF7_0EE0_4B73_81B0_6D72F064A28D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -