📄 iic_pcdlg.h
字号:
// IIC_PCDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "msredit1.h"
//}}AFX_INCLUDES
#if !defined(AFX_IIC_PCDLG_H__60DD75B3_45AA_4357_A877_BBC92BE31D68__INCLUDED_)
#define AFX_IIC_PCDLG_H__60DD75B3_45AA_4357_A877_BBC92BE31D68__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CIIC_PCDlg dialog
class CIIC_PCDlg : public CDialog
{
// Construction
public:
CIIC_PCDlg(CWnd* pParent = NULL); // standard constructor
int String2Hex(CString str, CByteArray &senddata); //把2位字符串转换为整数
int ConvertString2Hex(CString str); //把字符串转换到数组
char ConvertHexChar(char ch); //把1位字符串转换为整数
CString ConvertHex2String(int inHex, int lengthStr); //把整数转换为指定位数的字符串
void Initialize(); //程序初始化
void Refresh(); //刷新显示区
void Write(); //写iic芯片
void Delay(int n); //延时
//以下为屏幕操作程序
int NewPt(int ptOld); //
void ChangeChar(int pt); //
void ShowPt(int pt); //
CString strMem, strTransfer, m_strRXData, m_strTXData, m_strMem;
int intTemp, ptFunction;
char temp[500], charOld, charNew;
// Dialog Data
//{{AFX_DATA(CIIC_PCDlg)
enum { IDD = IDD_IIC_PC_DIALOG };
CButton m_ctrBtRead;
CEdit m_ctrlFile;
CMSComm m_ctrlComm;
CString m_strSendFilePathName;
CMSREdit m_ctrlMem;
CString m_strDataAddress;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CIIC_PCDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CIIC_PCDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnComm();
afx_msg void OnButtonClear();
afx_msg void OnButtonRead();
afx_msg void OnBUTTONBrowse();
afx_msg void OnButtonSavefile();
afx_msg void OnButtonEdit();
afx_msg void OnButtonClean();
afx_msg void OnMenuEmpty();
afx_msg void OnMenuFileOpen();
afx_msg void OnMenuFileSave();
afx_msg void OnMenuTransferRead();
afx_msg void OnMenuTransferWrite();
afx_msg void OnMouseUpEditMem(short Button, short Shift, long x, long y);
afx_msg void OnChangeEditMem();
afx_msg void OnChangeEditDtadr();
afx_msg void OnMenuEditUndo();
afx_msg void OnKeyUpEditMem(short FAR* KeyCode, short Shift);
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_IIC_PCDLG_H__60DD75B3_45AA_4357_A877_BBC92BE31D68__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -