// WavView.h : interface of the CDicWavView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_DicWavVIEW_H__F0DED84C_18C0_11D3_8952_0060087BCBA0__INCLUDED_) #define AFX_DicWavVIEW_H__F0DED84C_18C0_11D3_8952_0060087BCBA0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "WavDoc.h" #define FRAME_WIDTH 100 #define HORIZONTAL_POINT_COUNT 50 #define VERTICAL_POINT_COUNT 50 class CDicWavView : public CScrollView { protected: // create from serialization only CDicWavView(); DECLARE_DYNCREATE(CDicWavView) // Attributes public: CString m_ClassName; L_BOOL m_bLoadedWaveform; CDicWavDoc* GetDocument(); L_VOID DrawWaveform(CDC* pDC,CRect ViewRect); // Operations public: CFont m_font; int m_nRibbonWidth; int m_nCellHeight; int m_nCellWidth; int m_nPageWidth; int m_nPageHeight; int m_nNumHorzPoints; int m_nNumVerPoints; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDicWavView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: //}}AFX_VIRTUAL // Implementation public: virtual ~CDicWavView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: private: // Generated message map functions protected: //{{AFX_MSG(CDicWavView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnAllErorrs(); afx_msg void OnUpdateAllErorrs(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG inline CDicWavDoc* CDicWavView::GetDocument() { return (CDicWavDoc*) m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DicWavVIEW_H__F0DED84C_18C0_11D3_8952_0060087BCBA0__INCLUDED_)