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

📄 wave_fftview.h

📁 自制软件
💻 H
字号:
// Wave_FftView.h : interface of the CWave_FftView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mschart.h"
//}}AFX_INCLUDES
#include "WaveDraw.h"
#include "WaveProcess.h"
#if !defined(AFX_WAVE_FFTVIEW_H__41B44256_FD2B_4DA6_B13B_C298B17006B6__INCLUDED_)
#define AFX_WAVE_FFTVIEW_H__41B44256_FD2B_4DA6_B13B_C298B17006B6__INCLUDED_

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


class CWave_FftView : public CFormView
{
protected: // create from serialization only
	CWave_FftView();
	DECLARE_DYNCREATE(CWave_FftView)

public:
	//{{AFX_DATA(CWave_FftView)
	enum { IDD = IDD_WAVE_FFT_FORM };
	CScrollBar	m_Scroll;
	CMSChart	m_MsChart1;
	CMSChart	m_MsChart2;
	int		m_WaveType;
	int		m_NoNoise;
	float	m_Fre;
	//}}AFX_DATA

// Attributes
public:
	CWave_FftDoc* GetDocument();
    double *m_Data;  //数据
	double *m_FftData; //FFT变换后谱能量数据
	int m_Num;  //数据长度
    bool m_bAuto;
	BOOL m_Dir;//方向
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWave_FftView)
	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
    void  InitalForm();                //初始化界面
	void  ReDraw();
public:
    CWaveDraw m_WaveDraw;
	CWaveProcess m_WaveProcess;
// Implementation
public:
	virtual ~CWave_FftView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CWave_FftView)
	afx_msg void OnRadioWave();
	afx_msg void OnRadioWaveS();
	afx_msg void OnRADIONoNoise();
	afx_msg void OnNoise();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnButtonAuto();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Wave_FftView.cpp
inline CWave_FftDoc* CWave_FftView::GetDocument()
   { return (CWave_FftDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_WAVE_FFTVIEW_H__41B44256_FD2B_4DA6_B13B_C298B17006B6__INCLUDED_)

⌨️ 快捷键说明

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