📄 waveshowerview.h
字号:
// WaveShowerView.h : interface of the CWaveShowerView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_WAVESHOWERVIEW_H__B172FCB1_08C5_4343_8192_C9AA3CEB9AFF__INCLUDED_)
#define AFX_WAVESHOWERVIEW_H__B172FCB1_08C5_4343_8192_C9AA3CEB9AFF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CWaveShowerView : public CFormView
{
protected: // create from serialization only
CWaveShowerView();
DECLARE_DYNCREATE(CWaveShowerView)
public:
//{{AFX_DATA(CWaveShowerView)
enum{ IDD = IDD_WAVESHOWER_FORM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
CWaveShowerDoc* GetDocument();
public:
int m_BufLen; //数据长度
unsigned char* buffer; //数据缓存
int m_dx; //数据偏移量
int m_DY; //数据显示区的幅度
CPoint* value; //将要显示的数值
int m_DX; //数据显示区的宽度
int m_Y0; //数据显示区参照点位置
CRect rect; //数据显示区矩形
BOOL m_IsPause;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWaveShowerView)
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 DrawPoint(CPoint pt, COLORREF color);
void CleanScreen();
void GetScreenRect();
virtual ~CWaveShowerView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CWaveShowerView)
afx_msg void OnOpendata();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in WaveShowerView.cpp
inline CWaveShowerDoc* CWaveShowerView::GetDocument()
{ return (CWaveShowerDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WAVESHOWERVIEW_H__B172FCB1_08C5_4343_8192_C9AA3CEB9AFF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -