wavsvw.h
来自「西安电子科技大学王亚民教授所著《组态软件设计与开发》附带的源代码07章」· C头文件 代码 · 共 56 行
H
56 行
// wavsvw.h : interface of the CWaveSampleView class
//
/////////////////////////////////////////////////////////////////////////////
class CWaveSampleView : public CView
{
protected: // Create from serialization only.
CWaveSampleView();
DECLARE_DYNCREATE(CWaveSampleView)
// Attributes
public:
CWavesDoc* GetDocument();
// Operations
public:
// Implementation
public:
virtual ~CWaveSampleView();
virtual void OnInitialUpdate();
virtual void OnDraw(CDC* pDC); // Overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
private:
int m_iWndSamples;
int m_iFirstSample;
int m_iNumSamples;
// Generated message map functions
protected:
//{{AFX_MSG(CWaveSampleView)
afx_msg void OnFileSave();
afx_msg void OnFileSaveAs();
afx_msg void OnFilePlay();
afx_msg void OnFileStop();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in wavsvw.cpp
inline CWavesDoc* CWaveSampleView::GetDocument()
{ return (CWavesDoc*) m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?