// 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 }; CSliderCtrl m_ValueSlider; CString m_BaseAddress; CString m_Status; int m_Range; int m_Channel; CString m_Output; //}}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); 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 DECLARE_MESSAGE_MAP() private: DWORD BaseAddress; int RunFlag; 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_)