📄 ultrasonicview.h
字号:
// UltrasonicView.h : interface of the CUltrasonicView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_ULTRASONICVIEW_H__7AC3377D_FF01_42A8_A047_F7B5827F76FD__INCLUDED_)
#define AFX_ULTRASONICVIEW_H__7AC3377D_FF01_42A8_A047_F7B5827F76FD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CUltrasonicView : public CFormView
{
protected: // create from serialization only
CUltrasonicView();
DECLARE_DYNCREATE(CUltrasonicView)
public:
//{{AFX_DATA(CUltrasonicView)
enum { IDD = IDD_ULTRASONIC_FORM };
CSliderCtrl m_Slider;
CProgressCtrl m_Progress;
CScrollBar m_Scroll1;
CButton m_showwave;
CButton m_showdata;
CScrollBar m_Scroll;
CComboBox m_CH;
CButton m_openserial;
CMSComm m_ctrlComm;
CString m_strRXData;
CString m_strTXData;
int m_realorhis;
CString m_path;
int m_3;
int m_2;
CString m_chnow;
int m_bandrate;
int m_data;
int m_parity;
CString m_com;
int m_stop;
float m_1;
//}}AFX_DATA
// Attributes
public:
CUltrasonicDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUltrasonicView)
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);
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
public:
void intialpara();
int Char2Int(char ch0,char ch1);
char ConvertHexChar(char ch);
int String2Hex(CString str, CByteArray &senddata);
virtual ~CUltrasonicView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CUltrasonicView)
afx_msg void OnComm();
afx_msg void OnOpenserial();
afx_msg void OnSendcommand();
afx_msg void OnViewdataNow();
afx_msg void OnSelchangeCh();
afx_msg void OnBUTTONClearRX();
afx_msg void OnRealTimeWave();
afx_msg void OnHistoryWave();
afx_msg void OnSetParameter();
afx_msg void OnViewwaveCh1();
afx_msg void OnViewwaveCh2();
afx_msg void OnViewwaveCh3();
afx_msg void OnViewwaveCh4();
afx_msg void OnViewwaveCh5();
afx_msg void OnViewwaveCh6();
afx_msg void OnViewwaveCh7();
afx_msg void OnViewwaveCh8();
afx_msg void OnViewwaveCh9();
afx_msg void OnViewwaveAll();
afx_msg void Onzoom();
afx_msg void Onzoomup();
afx_msg void Onzoomdown();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void Onshowdata();
afx_msg void Onshowwave();
afx_msg void Onautomaticadjust();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnRadio1();
afx_msg void OnTecPlotFormat();
afx_msg void OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnStatisticParameter();
afx_msg void OnCoefficient();
afx_msg void OnParameterRead();
afx_msg void OnBUTTONreceive();
afx_msg void OnmAc6111Format();
afx_msg void OnResultSave();
afx_msg void OnComputeTime();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in UltrasonicView.cpp
inline CUltrasonicDoc* CUltrasonicView::GetDocument()
{ return (CUltrasonicDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ULTRASONICVIEW_H__7AC3377D_FF01_42A8_A047_F7B5827F76FD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -