www.pudn.com > CHA07.rar > WAVSVW.H


// 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 
 
/////////////////////////////////////////////////////////////////////////////