// Util9111Dlg.h : header file // #pragma once #include "afxcmn.h" #include "afxwin.h" #include "Dask64.h" #ifndef MAX_CHAN_9111 #define MAX_CHAN_9111 16 #endif // CUtil9111Dlg dialog class CUtil9111Dlg : public CDialog { // Construction public: CUtil9111Dlg(I16 hCard, U16 wCardType, CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_UTIL9111_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; int m_nAOValue; U16 m_wAdRange; U8 m_AIEnable[MAX_CHAN_9111]; U16 m_AIData[MAX_CHAN_9111]; 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: CScrollBar m_scBarAO; afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 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_9111]; 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 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 OnDo08(); afx_msg void OnDo09(); afx_msg void OnDo10(); afx_msg void OnDo11(); afx_msg void OnDo12(); afx_msg void OnDo13(); afx_msg void OnDo14(); afx_msg void OnDo15(); 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; CStatic m_Icon_IN08; CStatic m_Icon_IN09; CStatic m_Icon_IN10; CStatic m_Icon_IN11; CStatic m_Icon_IN12; CStatic m_Icon_IN13; CStatic m_Icon_IN14; CStatic m_Icon_IN15; private: int display_buffer_data(void); };