📄 zhangjg_dspview.h
字号:
// Zhangjg_dspView.h : interface of the CZhangjg_dspView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ZHANGJG_DSPVIEW_H__67B07E1E_E750_404E_B2DA_1219625EA06E__INCLUDED_)
#define AFX_ZHANGJG_DSPVIEW_H__67B07E1E_E750_404E_B2DA_1219625EA06E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CZhangjg_dspView : public CScrollView
{
protected: // create from serialization only
CZhangjg_dspView();
DECLARE_DYNCREATE(CZhangjg_dspView)
// Attributes
public:
CZhangjg_dspDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CZhangjg_dspView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
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);
//}}AFX_VIRTUAL
// Implementation
public:
int m_Fourierflag;
BOOL m_Test;
long FourierLength;
int flag;
double * X; //记录数据,便于中间进行计算;
int stepx;
int stepy;
int pointx;
int pointy;
double * AF; //幅频特性;
int M;
double m_f;
double m_a;
void OnUpdateCoorY(CCmdUI *pCmdUI);
void OnUpdateCoorX(CCmdUI *pCmdUI);
//void DrawCoordinate(int stepx, int stepy,int pointx, int pointy,CDC* pDC);
virtual ~CZhangjg_dspView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CPoint m_CurPos;
// Generated message map functions
protected:
//{{AFX_MSG(CZhangjg_dspView)
afx_msg void OnGauss();
afx_msg void OnTriangle();
afx_msg void OnAttenuationsin();
afx_msg void OnFft();
afx_msg void OnDft();
afx_msg void OnRectangle();
afx_msg void OnFourier();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRetriangle();
afx_msg void OnRectanglesy2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Zhangjg_dspView.cpp
inline CZhangjg_dspDoc* CZhangjg_dspView::GetDocument()
{ return (CZhangjg_dspDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ZHANGJG_DSPVIEW_H__67B07E1E_E750_404E_B2DA_1219625EA06E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -