- #if !defined(AFX_WAVEEDITVIEW_H__618031BB_6A68_11D2_B4AD_DEC1CAFE5B54__INCLUDED_)
- #define AFX_WAVEEDITVIEW_H__618031BB_6A68_11D2_B4AD_DEC1CAFE5B54__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // WaveEditView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CWaveEditView form view
- #ifndef __AFXEXT_H__
- #include <afxext.h>
- #endif
- //#include "WaveEditCtrl.h"
- #include "WaveEditSvr.h"
- class CWaveEditView : public CFormView
- {
- int m_cxChar;
- int m_cyChar;
- int m_nTextPos;
- HCURSOR m_hCursorArrow;
- HCURSOR m_hCursorIBeam;
- CPoint m_ptCaretOrigin;
- CPoint m_ptCaretPos;
- CString m_strInputText;
- void DrawBack(CDC*);
- protected:
- IWaveEditSvr m_waveClientObj;
- CRect rcClient;
- CWaveEditView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CWaveEditView)
- // Form Data
- public:
- //{{AFX_DATA(CWaveEditView)
- enum { IDD = IDD_WAVE_EDIT };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // Attributes
- public:
- BOOL m_bPlaying;
- BOOL m_bStopped;
- BOOL m_bPaused;
- // Operations
- public:
- BOOL m_bSvrTimerStopped;
- void SetStop();
- void SetPause();
- void SetPlay();
- void SetCursor();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CWaveEditView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CWaveEditView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CWaveEditView)
- afx_msg void OnPause();
- afx_msg void OnUpdatePause(CCmdUI* pCmdUI);
- afx_msg void OnPlay();
- afx_msg void OnUpdatePlay(CCmdUI* pCmdUI);
- afx_msg void OnStop();
- afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- afx_msg void OnKillFocus(CWnd* pNewWnd);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_WAVEEDITVIEW_H__618031BB_6A68_11D2_B4AD_DEC1CAFE5B54__INCLUDED_)