📄 shaoyeview.h
字号:
// ShaoYeView.h : interface of the CShaoYeView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHAOYEVIEW_H__89455139_5AA8_4206_A6DF_85196216D9B7__INCLUDED_)
#define AFX_SHAOYEVIEW_H__89455139_5AA8_4206_A6DF_85196216D9B7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "flowset.h"
#include "sampleresult.h"
class CShaoYeView : public CView
{
protected: // create from serialization only
CShaoYeView();
DECLARE_DYNCREATE(CShaoYeView)
// Attributes
public:
CShaoYeDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShaoYeView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
int show_count;
int second_pre,second_now;
float Flux_filter[50];//对50个数据滤波
int sample_count;//采样点个数
int array_num;//每一屏流量值个数
float Digital_filter(float a[]);
// float filter_array[31];
CFlowSet m_AddFlux;
virtual ~CShaoYeView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CShaoYeView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnConStart();
afx_msg void OnConStop();
afx_msg void OnUpdateConStart(CCmdUI* pCmdUI);
afx_msg void OnUpdateConStop(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ShaoYeView.cpp
inline CShaoYeDoc* CShaoYeView::GetDocument()
{ return (CShaoYeDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHAOYEVIEW_H__89455139_5AA8_4206_A6DF_85196216D9B7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -