You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
|
4 weeks ago
|
|
||
|
|
// 7200CwavDlg.h : header file
|
||
|
|
//
|
||
|
|
|
||
|
|
#include "Dask64.h"
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
|
||
|
|
// C7200CwavDlg dialog
|
||
|
|
class C7200CwavDlg : public CDialog
|
||
|
|
{
|
||
|
|
// Construction
|
||
|
|
public:
|
||
|
|
C7200CwavDlg(I16 hCard, CWnd* pParent = NULL); // standard constructor
|
||
|
|
|
||
|
|
// Dialog Data
|
||
|
|
enum { IDD = IDD_MY7200CWAV_DIALOG };
|
||
|
|
|
||
|
|
protected:
|
||
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||
|
|
|
||
|
|
|
||
|
|
// Implementation
|
||
|
|
protected:
|
||
|
|
HICON m_hIcon;
|
||
|
|
I16 m_hCard;
|
||
|
|
UINT_PTR m_nTimer;
|
||
|
|
U32* m_pDIAddr;
|
||
|
|
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;
|
||
|
|
|
||
|
|
// 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()
|
||
|
|
|
||
|
|
private:
|
||
|
|
int n_PlotHeight;
|
||
|
|
int n_PlotWidth;
|
||
|
|
public:
|
||
|
|
afx_msg void OnDestroy();
|
||
|
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
||
|
|
afx_msg void OnStart();
|
||
|
|
afx_msg void OnStop();
|
||
|
|
void display_buffer_data(U32* pBuf);
|
||
|
|
void redraw_display_area(void);
|
||
|
|
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
||
|
|
};
|