📄 dvpview.h
字号:
// dvpView.h : interface of the CDvpView class
//
/////////////////////////////////////////////////////////////////////////////
//#if !defined(AFX_DVPVIEW_H__AFAD99F2_CD36_46F7_A7FC_D9D42829096C__INCLUDED_)
//#define AFX_DVPVIEW_H__AFAD99F2_CD36_46F7_A7FC_D9D42829096C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "LedDialog.h"
#include "KeyDialog.h"
#include "DgDevDialog.h"
#include "EtcDialog.h"
#include "EpromDialg.h"
#include "IRDADialog.h"
#define CMD_NO 0
#define CMD_YES 1
#define CMD_ERROR 2
#define CMD_LACK 3
class CDvpView : public CFormView
{
protected: // create from serialization only
CDvpView();
DECLARE_DYNCREATE(CDvpView)
void BeginRead();
void EndRead();
void DealCmd();
bool DispatchCmd(unsigned char * cmd);
int JudgeCmd(unsigned char * RxBuf , int Pos , int Size);
CMemFile * RxBuffer;
public:
//{{AFX_DATA(CDvpView)
enum { IDD = IDD_DVP_FORM };
BOOL m_HexRx;
BOOL m_HexTx;
BOOL m_InstTx;
BOOL m_StopRx;
int m_Rate;
int m_ComPort;
//}}AFX_DATA
// Attributes
public:
CDvpDoc* GetDocument();
int Txcount;
int Rxcount;
CLedDialog * LedDlg;
CKeyDialog * KeyDlg;
CDgDevDialog * DgDevDlg;
CEpromDialg * EpDlg;
CEtcDialog * EtcDlg;
CIRDADialog * IRDADlg;
void DealErr(int ErrNo);
int SendData(unsigned char * buf , int len);
void AddStrToRxEdit(unsigned char * buf , int len);
bool OpenComPort();
bool CloseComPort();
void DealRxKeyDown(unsigned char *key);
void DealTxKeyDown(unsigned char *key);
void UpdateStausBar();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDvpView)
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:
virtual ~CDvpView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDvpView)
afx_msg void OnHexRxCheck();
afx_msg void OnSelchangeComCombo();
afx_msg void OnSelchangeRateCombo();
afx_msg void OnInstTxCheck();
afx_msg void OnHexTxCheck();
afx_msg void OnSendButton();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClrRx();
afx_msg void OnButton2();
afx_msg void OnButton1();
afx_msg void OnOpenLeddlg();
afx_msg void OnOpenKeydlg();
afx_msg void OnOpenTimerdlg();
afx_msg void OnOpenEprom();
afx_msg void OnOpenEtc();
afx_msg void OnOpenIrda();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in dvpView.cpp
inline CDvpDoc* CDvpView::GetDocument()
{ return (CDvpDoc*)m_pDocument; };
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
//#endif // !defined(AFX_DVPVIEW_H__AFAD99F2_CD36_46F7_A7FC_D9D42829096C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -