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

📄 exa06view.h

📁 比较经典的串口开发原码
💻 H
字号:
// exa06View.h : interface of the CExa06View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EXA06VIEW_H__6166CE45_1758_4DFA_963A_1BAD8F80D9A7__INCLUDED_)
#define AFX_EXA06VIEW_H__6166CE45_1758_4DFA_963A_1BAD8F80D9A7__INCLUDED_

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

#include "mscomm.h"

class CExa06View : public CScrollView
{
protected: // create from serialization only
	CExa06View();
	DECLARE_DYNCREATE(CExa06View)

// Attributes
public:
	CExa06Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CExa06View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
//COM control and data transport setting
	bool m_bCtrlCOMCreated;
	bool m_bDataCOMCreated;
	bool m_AlreadyOpen;
	
	int vScrollPos;
	int hScrollPos;
	
	virtual ~CExa06View();

///////////////////////about COM :setting,send and receive/////////////////
//return error code: 0:right , 1:open com error , 2:port set error, 3:port not exisit
	int SetDataCOM(CString str);
	int SetCtrlCOM(CString str);
//	void OnComm();
/////////////////////////////////////////////////////////////////////////////
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CExa06View)
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnCommDatacom();
	afx_msg void OnCommCtrlcom();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnDatasearch();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in exa06View.cpp
inline CExa06Doc* CExa06View::GetDocument()
   { return (CExa06Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_EXA06VIEW_H__6166CE45_1758_4DFA_963A_1BAD8F80D9A7__INCLUDED_)

⌨️ 快捷键说明

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