리크 테스트 gui
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.
 
 
 
 
 
 

107 lines
2.2 KiB

// Util9524Dlg.h : header file
//
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "Dask64.h"
#ifndef MAX_CHAN_9524
#define MAX_CHAN_9524 4
#endif
// CUtil9524Dlg dialog
class CUtil9524Dlg : public CDialog
{
// Construction
public:
CUtil9524Dlg(I16 hCard, CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_UTIL9524_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;
U16 m_wAOChannel;
U8 m_AIEnable[MAX_CHAN_9524];
U32 m_AIData[MAX_CHAN_9524];
U16 m_AIChan[MAX_CHAN_9524];
U32 m_OutData;
U32 m_InData;
U16 m_wPollSpeed;
U16 m_wGroup;
U16 m_wXMode;
// 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:
CScrollBar m_scBarAO;
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
CComboBox m_cbAIRange;
CComboBox m_cbAOChannel;
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_9524];
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 OnAOChannelSelchange();
afx_msg void OnAI00Enable();
afx_msg void OnAI01Enable();
afx_msg void OnAI02Enable();
afx_msg void OnAI03Enable();
afx_msg void OnDo00();
afx_msg void OnDo01();
afx_msg void OnDo02();
afx_msg void OnDo03();
afx_msg void OnDo04();
afx_msg void OnDo05();
afx_msg void OnDo06();
afx_msg void OnDo07();
afx_msg void OnTimer(UINT_PTR nIDEvent);
CStatic m_Icon_IN00;
CStatic m_Icon_IN01;
CStatic m_Icon_IN02;
CStatic m_Icon_IN03;
CStatic m_Icon_IN04;
CStatic m_Icon_IN05;
CStatic m_Icon_IN06;
CStatic m_Icon_IN07;
private:
int display_buffer_data(void);
};