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

📄 dwgview.h

📁 发送数字波形,可以选择方形
💻 H
字号:
// DWGView.h : interface of the CDWGView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DWGVIEW_H__2B94B072_C70E_11D2_A578_00E04C677C3E__INCLUDED_)
#define AFX_DWGVIEW_H__2B94B072_C70E_11D2_A578_00E04C677C3E__INCLUDED_

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

#include "DWGDoc.h"
	// Added by ClassView



class CDWGView : public CFormView
{
protected: // create from serialization only
	//CDWGView();
	DECLARE_DYNCREATE(CDWGView)
	CPtrArray m_MousePosition;
	CPoint m_pntMouseLoc;
	CPoint m_pntPrevLoc;
	UINT m_nMouseFlags;
	UINT m_nMouseButtonDown;

public:
	//{{AFX_DATA(CDWGView)
	enum { IDD = IDD_DWG_FORM };
	int	m_pp;
	int		m_Freq;
	//}}AFX_DATA

   CDWGView();

// Attributes
public:
	CDWGDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDWGView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	void ClearLed(int n);
	void PPLedDisplay(int n);
	void FreqLedDisplay(int n);
	void SetRenyiboLed();
	void SetHanshuboLed();
	void SetMaichongboLed();
	void SetSanjiaoboLed();
	void SetSinLed();
	void SetJuchiboLed();
	void SetFangboLed();
	void SetPowerLed();
	int Hanshu;
	int data[256];
	long int Freq;
	float pp;
	double Shiji;
	int Select;
	void OutputWave();

	int Counter;

	int m_nTrackbar1;
	int m_nTrackbar2;
	void Renyibo(CDC *pDC);
	void Hanshubo(CDC *pDC);
	void Maichongbo(CDC *pDC);
	void Sanjiaobo(CDC *pDC);
	void Juchibo(CDC *pDC);
	void Fangbo(CDC *pDC);
	void SINX(CDC* pDC);
	virtual ~CDWGView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif


// Generated message map functions
protected:
	//{{AFX_MSG(CDWGView)
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnButton6();
	afx_msg void OnButton7();
	afx_msg void OnButton8();
	afx_msg void OnPaint();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnChangeFreq();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnButtonUp();
	afx_msg void OnButtonDown();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

#ifndef _DEBUG  // debug version in DWGView.cpp
inline CDWGDoc* CDWGView::GetDocument()
   { return (CDWGDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DWGVIEW_H__2B94B072_C70E_11D2_A578_00E04C677C3E__INCLUDED_)

⌨️ 快捷键说明

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