// DACDlg.h : header file // #if !defined(AFX_DACDLG_H__3B420287_FD92_11D2_BC21_A07798FF490A__INCLUDED_) #define AFX_DACDLG_H__3B420287_FD92_11D2_BC21_A07798FF490A__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 ///////////////////////////////////////////////////////////////////////////// // CDACDlg dialog class CDACDlg : public CDialog { // Construction public: CDACDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CDACDlg) enum { IDD = IDD_DAC_DIALOG }; CEdit m_StatusControl; CComboBox m_CardComboControl; CStatic m_PciStaticControl; CStatic m_IsaStatic; CButton m_IsaGroup; CEdit m_IsaEdit; CSliderCtrl m_ValueSlider; CString m_BaseAddress; CString m_Status; int m_Range; int m_Channel; CString m_Output; int m_Resolution; CString m_CardName; CString m_PciAddress; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDACDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation unsigned ConvertForOutput(unsigned v); void UpdateDAC(); CString IntToBin(unsigned input); void FindCards(void); protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CDACDlg) virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnInit(); afx_msg void OnExit(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnSelchangePcicombo1(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: DWORD BaseAddress; int MaxCh; double Span, Offset; unsigned CurrentValue; }; //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DACDLG_H__3B420287_FD92_11D2_BC21_A07798FF490A__INCLUDED_)