⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsomaindlg.h

📁 最新的USB示波器源码?可直接编译生成可执行程序,需要硬件支持
💻 H
字号:
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_DSOMAINDLG_H__1A8B7E29_24BF_4216_879B_F010E4C5637F__INCLUDED_)
#define AFX_DSOMAINDLG_H__1A8B7E29_24BF_4216_879B_F010E4C5637F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DSOMainDlg.h : header file
//
#include "CRoundCtrl.h"
#include "DisplayWindow.h"
#include "RoundButton.h"
#include "SwitchButton.h"
/////////////////////////////////////////////////////////////////////////////
// CDSOMainDlg dialog

class CDSOMainDlg : public CDialog
{
// Construction
public:
	BOOL Download8051File(LPBYTE pbuff,WORD lenght);
	BOOL SendCommandToUSB(BYTE order);
	CDSOMainDlg(CWnd* pParent = NULL);   // standard constructor
    
// Dialog Data
	//{{AFX_DATA(CDSOMainDlg)
	enum { IDD = IDD_DSO_MAIN };
	CButton	m_pluse_time_down_but;
	CButton	m_pluse_time_up_but;
	CButton	m_pluse_time_setup_but;
	CEdit	m_pluse_mes_ctl;
	CStatic	m_video_type;
	CStatic	m_level_ctl;
	CStatic	m_lineNr_ctl;
	CStatic	m_alllines_ctl;
	CStatic	m_field2_ctl;
	CStatic	m_field1_ctl;
	CStatic	m_secam_ctl;
	CStatic	m_ntsc_ctl;
	CStatic	m_pal_ctl;
	CSpinButtonCtrl	m_linesSel_ctl;
	CEdit	m_lines_ctl;
	CSwitchButton	m_video_trg_ctl;
	CSwitchButton	m_tvmode_ctl;
	CSwitchButton	m_slope_ctl;
	CSliderCtrl	m_cha_offset_ctl;
	CEdit	m_mes_ctrl;
	CSliderCtrl	m_memory_offset_ctrl;
	CSliderCtrl	m_trigSit_ctrl;
	CSliderCtrl	m_trig_level_ctrl;
	CRoundButton	m_chb_inv_but;
	CRoundButton	m_cha_inv_but;
	CRoundButton	m_chb_dw_but;
	CRoundButton	m_cha_dw_but;
	CSwitchButton	m_trig_type_but;
	CSwitchButton	m_trig_coupline_but;
	CSwitchButton	m_trig_mode_but;
	CSwitchButton	m_chb_coupline_but;
	CSwitchButton	m_cha_coupline_but;
	CButton	m_chb_1x_but;
	CButton	m_chb_10x_but;
	CButton	m_chb_100x_but;
	CButton	m_cha_100x_but;
	CButton	m_cha_10x_but;
	CButton	m_cha_1x_but;
	CRoundButton	m_crusor_but;
	CRoundButton	m_chb_on_but;
	CRoundButton	m_cha_on_but;
	CSwitchButton	m_TrigSource_but;
	CRoundButton	m_trig_level_reset_but;
	CRoundButton	m_xy_but;
	CRoundButton	m_fft_but;
	CRoundButton	m_single_but;
	CRoundButton	m_normal_but;
	CRoundButton	m_trig_force_but;
	CRoundButton	m_trig_up_but;
	CRoundButton	m_trig_down_but;
	CRoundButton	m_trig_clk_width_but;
	CRoundButton	m_load_but;
	CRoundButton	m_save_but;
	CRoundButton	m_auto_but;
	CRoundButton	m_off_but;
	CRoundButton	m_run_stop_but;
	CCRoundCtrl	m_chbdbCtl;
	CCRoundCtrl	m_chadbCtl;
	DisplayWindow	m_displayWnd;
	CCRoundCtrl	m_Time_Ctrl;
	CMSComm	m_ComPort;
	CString	m_com_str;
	int		m_lines;
	CString	m_pluse_mes;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDSOMainDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	BOOL SendDataToUSB(BYTE order);
	void SendCommandToComPort();
	void SendMessageToCom(unsigned char *data, int n);
    BOOL isChaON;
	BOOL isChbON;
	BOOL isChaDW;
	BOOL isChbDW;
    BOOL isChaInv;
	BOOL isChbInv;
	BOOL send_req;
    CRect cha_dbCtrl_rect;
    CRect chb_dbCtrl_rect;
    BOOL isRun;
	int cha_probe;
	int chb_probe;
	int m_trige_type;
	WORD video_lines;
	BOOL rec_flag;
	DWORD pluse_time;
	BYTE  time_uint;
	// Generated message map functions
	//{{AFX_MSG(CDSOMainDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnTirgEdgeUp();
	afx_msg void OnTirgEdgeDown();
	afx_msg void OnTirgClkWidth();
	afx_msg void OnChaOn();
	afx_msg void OnChbOn();
	afx_msg void OnCrusor();
	afx_msg void OnTimeCtrl();
	afx_msg void OnChadbCtrl();
	afx_msg void OnChbdbCtrl();
	afx_msg void OnChaX1();
	afx_msg void OnCha10x();
	afx_msg void OnCha100x();
	afx_msg void OnChb1x();
	afx_msg void OnChb10x();
	afx_msg void OnChb100x();
	afx_msg void OnTrigType();
	afx_msg void OnChaDw();
	afx_msg void OnChbDw();
	afx_msg void OnChaInv();
	afx_msg void OnChbInv();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnTrigMode();
	afx_msg void OnTrigSourceSelect();
	afx_msg void OnTrigCoupline();
	afx_msg void OnChaCoupline();
	afx_msg void OnChbCoupline();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnRunStop();
	afx_msg void OnSave();
	afx_msg void OnLoad();
	afx_msg void OnOnCommMscomm();
	afx_msg void OnPaint();
	afx_msg void OnDownload();
	afx_msg void OnPlay();
	afx_msg void OnBack();
	afx_msg void OnNext();
	virtual void OnCancel();
	afx_msg void OnSlopeSel();
	afx_msg void OnTvMode();
	afx_msg void OnVideoSel();
	afx_msg void OnPluseTimeUp();
	afx_msg void OnPluseTimeDown();
	afx_msg void OnPluseTimeSetup();
	afx_msg void OnSingle();
	afx_msg void OnXy();
	afx_msg void OnNoraml();
	afx_msg void OnShiliangDisp();
	afx_msg void OnUpdateShiliangDisp(CCmdUI* pCmdUI);
	afx_msg void OnNormalCaiji();
	afx_msg void OnUpdateNormalCaiji(CCmdUI* pCmdUI);
	afx_msg void OnAvergeCaiji();
	afx_msg void OnUpdateAvergeCaiji(CCmdUI* pCmdUI);
	afx_msg void OnGlitchesDetect();
	afx_msg void OnUpdateGlitchesDetect(CCmdUI* pCmdUI);
	afx_msg void OnGrapBaochi();
	afx_msg void OnUpdateGrapBaochi(CCmdUI* pCmdUI);
	afx_msg void OnFft();
	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_DSOMAINDLG_H__1A8B7E29_24BF_4216_879B_F010E4C5637F__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -