📄 ctrlbord.h
字号:
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_CTRLBORD_H__F9580437_E4C1_4B39_84B9_8D0AD699CA76__INCLUDED_)
#define AFX_CTRLBORD_H__F9580437_E4C1_4B39_84B9_8D0AD699CA76__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CtrlBord.h : header file
//
#include "CRoundCtrl.h"
#include "DisplayWindow.h"
/////////////////////////////////////////////////////////////////////////////
// CCtrlBord form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CCtrlBord : public CFormView
{
protected:
CCtrlBord(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CCtrlBord)
// Form Data
public:
//{{AFX_DATA(CCtrlBord)
enum { IDD = IDD_CTRLBORD };
CButton m_select_ch2;
CButton m_select_ch1;
CButton m_ch1subch2;
CSliderCtrl m_trig_ctrl;
CComboBox m_FT_comb;
CButton m_run_button;
CButton m_single_trige_button;
CButton m_check_trige_button;
CButton m_gnd_button;
CButton m_dc_button;
CButton m_ac_button;
CButton m_ch1_ch2_button;
CButton m_ch2_button;
CButton m_ch1_button;
CCRoundCtrl m_ch2dbCtl;
DisplayWindow m_displayWnd;
CCRoundCtrl m_ch1TimeCtl;
CCRoundCtrl m_ch1dbCtl;
BOOL m_TrigeMode;
BOOL m_JK1;
BOOL m_JK2;
BOOL m_JK3;
BOOL m_JK4;
BOOL m_JK5;
BOOL m_JK6;
BOOL m_JK7;
BOOL m_single_trige;
CMSComm m_ComPort;
CString m_mes;
CString m_mes2;
int m_trig_vlot;
CString m_vlot_dis;
BOOL m_db10;
BOOL m_db2;
BOOL m_db5;
//}}AFX_DATA
// Attributes
public:
BOOL isRun;
unsigned char code[5];
unsigned char ord[5];
// Operations
public:
int select_Tdv;
unsigned int sampleT; //采样频率的周期,ns为单位
unsigned int T_div; //显示每点的时间,ns为单位
unsigned char Intrepol_lagrange(int t,LPBYTE pbuf);
void SendMessageToCom(unsigned char *data,int n);
BOOL SendCommand(BYTE order);
BOOL busy_flag,send_req;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCtrlBord)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
unsigned char Intrepol_sin(int t, LPBYTE pbuf);
void Data_analyse();
virtual ~CCtrlBord();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CCtrlBord)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnCh1();
afx_msg void OnCh2();
afx_msg void OnCh1andch2();
afx_msg void OnRun();
afx_msg void OnStop();
afx_msg void OnCh1dbctrl();
afx_msg void OnCh1timectrl();
afx_msg void OnCheckTrige();
afx_msg void OnScaleline();
afx_msg void OnSave();
afx_msg void OnSignalTrig();
afx_msg void OnAc();
afx_msg void OnDc();
afx_msg void OnGnd();
afx_msg void OnSelchangeComboSelectFt();
afx_msg void OnKeyUp();
afx_msg void OnKeyLeft();
afx_msg void OnKeyRight();
afx_msg void OnKeyDown();
afx_msg void OnKeyOk();
afx_msg void OnKeyExit();
afx_msg void OnOnCommMscomm();
afx_msg void OnOff();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnJk1();
afx_msg void OnJk2();
afx_msg void OnJk3();
afx_msg void OnJk4();
afx_msg void OnDb10();
afx_msg void OnDb2();
afx_msg void OnDb5();
afx_msg void OnCh1andch3();
afx_msg void OnCh1subch2();
afx_msg void OnCha();
afx_msg void OnChb();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CTRLBORD_H__F9580437_E4C1_4B39_84B9_8D0AD699CA76__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -