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

📄 senddataedit.h

📁 串口收发工具
💻 H
字号:
#if !defined(AFX_SENDDATAEDIT_H__8E496CB0_1BA8_463F_A1AF_E4966CEB323B__INCLUDED_)
#define AFX_SENDDATAEDIT_H__8E496CB0_1BA8_463F_A1AF_E4966CEB323B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SendDataEdit.h : header file
#include "public.h"

/////////////////////////////////////////////////////////////////////////////
// CSendDataEdit window

class CSendDataEdit : public CEdit
{
// Construction
public:
	CSendDataEdit();

// Attributes
public:
	void GetData(BYTE *m_data,int& Length);
	void SetFrameText(BYTE*,int);
private:
	BYTE buf[SEND_EDIT_LEN];
	CWnd* m_view;
	bool bParityMenu;
	void AdjustSel();
	BYTE atoh(char cc1);
	BYTE bParity[2];
	//BYTE buf[1024];
	int  nLen;
	int nSendTime;
	bool bRequestFDK;//FDK召唤标志,1时发送窗口数据不清除
	bool bRequest0420;//0420召唤标志,1时发送窗口数据不清除

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSendDataEdit)
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSendDataEdit();

	// Generated message map functions
protected:
	//{{AFX_MSG(CSendDataEdit)
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSelall();
	afx_msg void OnCopy();
	afx_msg void OnDelete();
	afx_msg void OnPaste();
	afx_msg void OnCreateparity();
	afx_msg void OnCDTparity();
	afx_msg void OnChecksumparity();
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SENDDATAEDIT_H__8E496CB0_1BA8_463F_A1AF_E4966CEB323B__INCLUDED_)

⌨️ 快捷键说明

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