// Util9118Dlg.h : header file // #pragma once #include "afxcmn.h" #include "afxwin.h" #include "Dask64.h" #ifndef MAX_CHAN_9118 #define MAX_CHAN_9118 16 #endif // CUtil9118Dlg dialog class CUtil9118Dlg : public CDialog { // Construction public: CUtil9118Dlg(I16 hCard, U16 wCardType, U16 wInputSignal, U16 wInputMode, CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_UTIL9118_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; U16 m_wInputSignal; U16 m_wInputMode; int m_nAOValue; U16 m_wAdRange; U8 m_AIEnable[MAX_CHAN_9118]; U16 m_AIData[MAX_CHAN_9118]; 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_9118]; 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 OnTimer(UINT_PTR nIDEvent); CStatic m_Icon_IN00; CStatic m_Icon_IN01; CStatic m_Icon_IN02; CStatic m_Icon_IN03; private: int display_buffer_data(void); };