www.pudn.com > CHA07.rar > WAVDVW.H
// wavdvw.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWaveDataView view
class CWaveDataView : public CScrollView
{
DECLARE_DYNCREATE(CWaveDataView)
protected:
CWaveDataView(); // Protected constructor used by dynamic creation.
// Attributes
public:
CWavesDoc* GetDocument() {return (CWavesDoc*) m_pDocument;}
// Operations
public:
void At(CDC* pDC, int line, char* fmt, ...);
// Implementation
protected:
virtual ~CWaveDataView();
virtual void OnDraw(CDC* pDC); // Overridden to draw this view
virtual void OnInitialUpdate(); // First time after construct
// Generated message map functions
//{{AFX_MSG(CWaveDataView)
afx_msg void OnFileSave();
afx_msg void OnFileSaveAs();
afx_msg void OnFilePlay();
afx_msg void OnFileStop();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CFont m_Font;
int m_iFontWidth;
int m_iFontHeight;
};
/////////////////////////////////////////////////////////////////////////////