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.
94 lines
1.9 KiB
94 lines
1.9 KiB
|
|
// Util9113Dlg.h : header file
|
|
//
|
|
|
|
#pragma once
|
|
#include "afxcmn.h"
|
|
#include "afxwin.h"
|
|
|
|
#include "Dask64.h"
|
|
|
|
#ifndef MAX_CHAN_9113
|
|
#define MAX_CHAN_9113 16
|
|
#endif
|
|
|
|
// CUtil9113 dialog
|
|
class CUtil9113Dlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CUtil9113Dlg(I16 hCard, CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
enum { IDD = IDD_UTIL9113_DIALOG };
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
|
|
|
|
// Implementation
|
|
protected:
|
|
HICON m_hIcon;
|
|
UINT_PTR m_nTimer;
|
|
I16 m_hCard;
|
|
int m_nAOValue;
|
|
U16 m_wAdRange;
|
|
U8 m_AIEnable[MAX_CHAN_9113];
|
|
U16 m_AIData[MAX_CHAN_9113];
|
|
U32 m_OutData;
|
|
U32 m_InData;
|
|
|
|
// 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:
|
|
CComboBox m_cbAIRange;
|
|
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;
|
|
int m_oldY[MAX_CHAN_9113];
|
|
HBRUSH OnBrush;
|
|
HBRUSH OffBrush;
|
|
CPen RedPen;
|
|
CPen GreenPen;
|
|
CPen YellowPen;
|
|
CPen BluePen;
|
|
CPen LTBluePen;
|
|
CPen LTRedPen;
|
|
CPen LTGreenPen;
|
|
CPen WhitePen;
|
|
|
|
private:
|
|
void redraw_display_area(void);
|
|
public:
|
|
afx_msg void OnDestroy();
|
|
afx_msg void OnAIRangeSelchange();
|
|
afx_msg void OnAI00Enable();
|
|
afx_msg void OnAI01Enable();
|
|
afx_msg void OnAI02Enable();
|
|
afx_msg void OnAI03Enable();
|
|
afx_msg void OnAI04Enable();
|
|
afx_msg void OnAI05Enable();
|
|
afx_msg void OnAI06Enable();
|
|
afx_msg void OnAI07Enable();
|
|
afx_msg void OnAI08Enable();
|
|
afx_msg void OnAI09Enable();
|
|
afx_msg void OnAI10Enable();
|
|
afx_msg void OnAI11Enable();
|
|
afx_msg void OnAI12Enable();
|
|
afx_msg void OnAI13Enable();
|
|
afx_msg void OnAI14Enable();
|
|
afx_msg void OnAI15Enable();
|
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
|
private:
|
|
int display_buffer_data(void);
|
|
};
|
|
|