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

📄 serialdataview.h

📁 CRC校验 CSerialPort串口类C RC校验 CSerialPort串口类
💻 H
字号:
// SerialDataView.h : CSerialDataView 类的接口
//

#include "SerialPort.h"
#include <process.h>
#include "SerialControl.h"
#include "MainFrm.h"
#include "afxcmn.h"
#pragma once


class CSerialDataView : public CFormView
{
protected: // 仅从序列化创建
	CSerialDataView();
	DECLARE_DYNCREATE(CSerialDataView)

public:
	enum{ IDD = IDD_SERIALDATA_FORM };

// 属性
public:
	CSerialDataDoc* GetDocument() const;
	int ports;
// 操作
public:
protected:
	CSerialControl nControl1;
	bool nTimeFlag;




// 重写
	public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	virtual void OnInitialUpdate(); // 构造后第一次调用

// 实现
public:
	virtual ~CSerialDataView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedWritebutton1();
	CListCtrl nListShow;
	afx_msg void OnDestroy();
	void ChangChar(const unsigned char* aData);
	LRESULT OnGetStr(WPARAM wParam, LPARAM lParam);
	afx_msg void OnBnClickedWritebutton2();
	afx_msg void OnBnClickedClearList();
	afx_msg void OnBnClickedWritebutton3();
	afx_msg void OnBnClickedCrcbut();
};

#ifndef _DEBUG  // SerialDataView.cpp 的调试版本
inline CSerialDataDoc* CSerialDataView::GetDocument() const
   { return reinterpret_cast<CSerialDataDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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