📄 readcompassview.h
字号:
// ReadCompassView.h : interface of the CReadCompassView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_READCOMPASSVIEW_H__C905C68F_753B_441A_8E70_44E635118E90__INCLUDED_)
#define AFX_READCOMPASSVIEW_H__C905C68F_753B_441A_8E70_44E635118E90__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CReadCompassSet;
class CReadCompassView : public CRecordView
{
protected: // create from serialization only
CReadCompassView();
DECLARE_DYNCREATE(CReadCompassView)
public:
//{{AFX_DATA(CReadCompassView)
enum { IDD = IDD_READCOMPASS_FORM };
CComboBox m_ctrlMoni;
CStatic m_ctrlIconOpenoff8;
CStatic m_ctrlIconOpenoff7;
CStatic m_ctrlIconOpenoff6;
CStatic m_ctrlIconOpenoff5;
CStatic m_ctrlIconOpenoff4;
CStatic m_ctrlIconOpenoff3;
CStatic m_ctrlIconOpenoff2;
CStatic m_ctrlIconOpenoff1;
CButton m_ctrlSendFile;
CEdit m_ctrlEditSendFile;
CComboBox m_ctrlComNum;
CComboBox m_ctrlDataType;
CButton m_ctrlHexDisplay;
CButton m_ctrlReceive;
CReadCompassSet* m_pSet;
BOOL m_bAutoSend;
CString m_ComSetting;
CString m_strRXData;
CString m_strTXData;
CMSComm m_ctrlComm;
int m_Time;
CString m_strSendFilePathName;
//}}AFX_DATA
// Attributes
public:
CReadCompassDoc* GetDocument();
int m_nInputMode;
BOOL bSend;
BOOL bReceive;
CString m_strChecksum2;
CString m_strPortRXData2;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CReadCompassView)
public:
virtual CRecordset* OnGetRecordset();
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);
//}}AFX_VIRTUAL
// Implementation
public:
CString m_strPortRXData1;
int m_nMoni;
BOOL m_bSendFile;
CString m_strTempSendFilePathName;
CString m_strCurPath;
long m_nFileLength;
char ConvertHexChar(char ch);
int String2Hex(CString str, CByteArray &senddata);
virtual ~CReadCompassView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CReadCompassView)
afx_msg void OnOnComm();
afx_msg void OnClear();
afx_msg void OnStop();
afx_msg void OnSend();
afx_msg void OnCheckAutosend();
afx_msg void OnOk();
afx_msg void OnSelchangeCombo();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonSendfile();
afx_msg void OnButtonFilebrower();
afx_msg void OnOk2();
afx_msg void OnOk3();
afx_msg void OnOk4();
afx_msg void OnSelchangeCombomoni();
DECLARE_EVENTSINK_MAP();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ReadCompassView.cpp
inline CReadCompassDoc* CReadCompassView::GetDocument()
{ return (CReadCompassDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_READCOMPASSVIEW_H__C905C68F_753B_441A_8E70_44E635118E90__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -