// 9223WavDlg.h : header file // #include "Dask.h" #pragma once // C9223WavDlg dialog class C9223WavDlg : public CDialog { // Construction public: C9223WavDlg(I16 hCard, CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_MY9223WAV_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; I16 m_hCard; UINT_PTR m_nTimer; U16* m_pDIAddr1; U16* m_pDIAddr2; U32 m_dwDISamples; HBRUSH OnBrush; HBRUSH OffBrush; CPen RedPen; CPen GreenPen; DWORD max_val; DWORD min_val; int y_divider; int x_divider; int m_DisplayScale; double m_fSampleRate; U16 m_wDOBufferId; U16 m_wDIBufId1; U16 m_wDIBufId2; U8 m_bView; U32 m_dwOverrunCnt; BOOLEAN m_fDOStop; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: afx_msg void OnDestroy(); afx_msg void OnStart(); afx_msg void OnStop(); afx_msg void OnTimer(UINT_PTR nIDEvent); void display_buffer_data(U16* pBuf); void redraw_display_area(void); afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); private: int n_PlotHeight; int n_PlotWidth; };