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.
80 lines
1.6 KiB
80 lines
1.6 KiB
|
4 weeks ago
|
|
||
|
|
// 9118AtrgDlg.h : header file
|
||
|
|
#pragma once
|
||
|
|
#include "afxcmn.h"
|
||
|
|
#include "afxwin.h"
|
||
|
|
|
||
|
|
#include "Dask64.h"
|
||
|
|
|
||
|
|
#ifndef MAX_CHAN_9118
|
||
|
|
#define MAX_CHAN_9118 16
|
||
|
|
#endif
|
||
|
|
|
||
|
|
// C9118AtrgDlg dialog
|
||
|
|
class C9118AtrgDlg : public CDialog
|
||
|
|
{
|
||
|
|
// Construction
|
||
|
|
public:
|
||
|
|
C9118AtrgDlg(I16 hCard, CWnd* pParent = NULL); // standard constructor
|
||
|
|
|
||
|
|
// Dialog Data
|
||
|
|
enum { IDD = IDD_9118DMA_DIALOG };
|
||
|
|
|
||
|
|
protected:
|
||
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||
|
|
|
||
|
|
|
||
|
|
// Implementation
|
||
|
|
protected:
|
||
|
|
HICON m_hIcon;
|
||
|
|
UINT_PTR m_nTimer;
|
||
|
|
I16 m_hCard;
|
||
|
|
U16 m_wCardType;
|
||
|
|
double m_fSampleRate;
|
||
|
|
U16 m_wScanChans;
|
||
|
|
HANDLE m_hMem;
|
||
|
|
U16 *m_pAIBuf;
|
||
|
|
U16 m_wRange;
|
||
|
|
int m_oldY;
|
||
|
|
int m_oldX;
|
||
|
|
U32 m_dwReadCount;
|
||
|
|
U16 m_wChannel;
|
||
|
|
U16 m_wPostCount;
|
||
|
|
|
||
|
|
// 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:
|
||
|
|
WORD max_val;
|
||
|
|
WORD min_val;
|
||
|
|
double max_range;
|
||
|
|
double min_range;
|
||
|
|
int n_PlotWidth;
|
||
|
|
int n_PlotHeight;
|
||
|
|
int y_divider;
|
||
|
|
int x_divider;
|
||
|
|
int m_DisplayScale;
|
||
|
|
HBRUSH OnBrush;
|
||
|
|
HBRUSH OffBrush;
|
||
|
|
CPen RedPen;
|
||
|
|
void redraw_display_area(void);
|
||
|
|
afx_msg void OnDestroy();
|
||
|
|
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
||
|
|
afx_msg void OnStart();
|
||
|
|
int display_buffer_data(U16* pBuf, U32 dwDataSize);
|
||
|
|
afx_msg void OnCh0();
|
||
|
|
afx_msg void OnCh1();
|
||
|
|
afx_msg void OnCh2();
|
||
|
|
afx_msg void OnCh3();
|
||
|
|
afx_msg void OnCh4();
|
||
|
|
afx_msg void OnCh5();
|
||
|
|
afx_msg void OnCh6();
|
||
|
|
afx_msg void OnCh7();
|
||
|
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
||
|
|
afx_msg void OnStop();
|
||
|
|
};
|