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

📄 testoscopedlg.h

📁 基于串口通讯(通过USB转串口)的示波器界面
💻 H
字号:
// TestOScopeDlg.h : header file
//

#if !defined(AFX_TESTOSCOPEDLG_H__B6D56D28_8E1A_11D2_9136_BC7DCDD30D52__INCLUDED_)
#define AFX_TESTOSCOPEDLG_H__B6D56D28_8E1A_11D2_9136_BC7DCDD30D52__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "OScopeCtrl.h"
#define WM_MESSAGE_UPDATEOUTPUT (WM_USER+101) 
#define WM_MESSAGE_UPDATEPROGRESS (WM_USER+102) 
#define WM_MESSAGE (WM_USER+103) 
#define SAMPLING_STATUS_STOP  0
#define SAMPLING_STATUS_START  1
/////////////////////////////////////////////////////////////////////////////
// CTestOScopeDlg dialog

class CTestOScopeDlg : public CDialog
{
// Construction
public:
	int Init_Flag;
	char szRequest[3];
	void DataSample();
    CTestOScopeDlg(CWnd* pParent = NULL);  // standard constructor
 // Dialog Data
  //{{AFX_DATA(CTestOScopeDlg)
	enum { IDD = IDD_TESTOSCOPE_DIALOG };
	CListBox	m_SampleResult;
	CListBox	m_ctrlListBox;
	CSliderCtrl	m_nSlider;
	CComboBox	m_ctrlChannel;
	int		m_nShowEdit;
	CString	m_strChannel;
	//}}AFX_DATA

  // ClassWizard generated virtual function overrides
  //{{AFX_VIRTUAL(CTestOScopeDlg)
  protected:
  virtual void DoDataExchange(CDataExchange* pDX);  // DDX/DDV support
  //}}AFX_VIRTUAL
private:
	  CWinThread* m_pPlayThread;
	  int     m_nPlayerStatus;
// Implementation
protected:
  HICON m_hIcon;
  COScopeCtrl m_OScopeCtrl;
  BOOL        m_bStartStop;


  // Generated message map functions
  //{{AFX_MSG(CTestOScopeDlg)
  virtual BOOL OnInitDialog();
  afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  afx_msg void OnPaint();
  afx_msg HCURSOR OnQueryDragIcon();
  afx_msg void OnRunstop();
  afx_msg void OnTimer(UINT nIDEvent);
  virtual void OnOK();
  virtual void OnCancel();
	afx_msg void OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnChangeEdit1();
	//}}AFX_MSG
  DECLARE_MESSAGE_MAP()
private:
	HANDLE m_hDevice;
	CString m_strCOMPath;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTOSCOPEDLG_H__B6D56D28_8E1A_11D2_9136_BC7DCDD30D52__INCLUDED_)

⌨️ 快捷键说明

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