📄 vsbqview.h
字号:
// VsbqView.h : interface of the CVsbqView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_VSBQVIEW_H__B173D1B6_8E6C_4E20_961A_10774625B906__INCLUDED_)
#define AFX_VSBQVIEW_H__B173D1B6_8E6C_4E20_961A_10774625B906__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "VsbqDoc.h"
#include "LftView.h"
#include "MainFrm.h"
#include "Graphisc.h"
class CVsbqView : public CView
{
protected: // create from serialization only
CVsbqView();
DECLARE_DYNCREATE(CVsbqView)
// Attributes
public:
CVsbqDoc* GetDocument();
public:
BOOL m_bMouseMove; // 鼠标移动标志
BOOL m_bLButtonDown; // 鼠标左键按下标志
float *m_pvalData; // 波形数据
float *m_pvalFreq; // 信号频率
float m_valFreq; // 频率
POINT m_valArry[1024]; // 数据
CoordinateRange CdtRange;
CGraphisc graph0;
CPen *pOldPen; // 定义画波形的画笔
// Operations
public:
BOOLEAN bStopped;
HBRUSH hBlackBrush;
HPEN hRedPen;
HPEN hBlackPen;
// CLftView m_Lftview;
void OscilShow(CDC *pDC,CPoint points,CPoint pointe, CRect rect,BOOL bpflage);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVsbqView)
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);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CVsbqView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
public:
void OscilShow(CDC *pDC,CPoint points,CPoint pointe,
CRect rect,float *data,BOOL bpflage);
// Generated message map functions
protected:
afx_msg void OnContextMenu(CWnd*, CPoint point);
//{{AFX_MSG(CVsbqView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnWaveTime(); //////////////////////////
afx_msg void OnStopWaveTime(); /////////////////////////////
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnUpdateFilePrintPreview(CCmdUI* pCmdUI);
afx_msg void OnMyPrint(); //////////////////////
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in VsbqView.cpp
inline CVsbqDoc* CVsbqView::GetDocument()
{ return (CVsbqDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VSBQVIEW_H__B173D1B6_8E6C_4E20_961A_10774625B906__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -