📄 examviewview.h
字号:
// examviewView.h : interface of the CExamviewView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_EXAMVIEWVIEW_H__5120FB56_5D70_43E9_A073_14191AEA75C7__INCLUDED_)
#define AFX_EXAMVIEWVIEW_H__5120FB56_5D70_43E9_A073_14191AEA75C7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CExamviewView : public CFormView
{
protected: // create from serialization only
CExamviewView();
DECLARE_DYNCREATE(CExamviewView)
public:
//{{AFX_DATA(CExamviewView)
enum { IDD = IDD_EXAMVIEW_FORM };
CMSComm m_MSComm;
BOOL m_bTune1;
BOOL m_bTune2;
BOOL m_bTune4;
BOOL m_bTune3;
//}}AFX_DATA
// Attributes
public:
CExamviewDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CExamviewView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CString baudtemp;
int baud;
BOOL bPortOpened;
virtual ~CExamviewView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CExamviewView)
afx_msg void OnComm();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileExport();
afx_msg void OnFileImport();
afx_msg void OnComSetup();
afx_msg void OnComOpen();
afx_msg void OnComClose();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnComRead();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
char ConvertHexChar(char ch);
int String2Hex(CString str,CByteArray &senddata);
int DevID;
CString Combine(CString DevID,CString Address);
int StrToHex(CString str, BYTE *btData);
WORD ANSI_CRC_16(BYTE* btData,int nLength);
short port;
};
#ifndef _DEBUG // debug version in examviewView.cpp
inline CExamviewDoc* CExamviewView::GetDocument()
{ return (CExamviewDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EXAMVIEWVIEW_H__5120FB56_5D70_43E9_A073_14191AEA75C7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -