// sample1Dlg.h : header file // #if !defined(AFX_SAMPLE1DLG_H__D0119087_428F_4E03_B0E7_8E554BF93A4F__INCLUDED_) #define AFX_SAMPLE1DLG_H__D0119087_428F_4E03_B0E7_8E554BF93A4F__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CSample1Dlg dialog class CSample1Dlg : public CDialog { // Construction public: CSample1Dlg(CWnd* pParent = NULL); // standard constructor CEdit *editArray[4]; CButton *checkArray[4], *btnArray[4]; unsigned long outMask, deviceIndex; unsigned char data[4]; void chkClicked (int index); void buttonClicked (int index); void grabData(); // Dialog Data //{{AFX_DATA(CSample1Dlg) enum { IDD = IDD_SAMPLE1_DIALOG }; CEdit m_editPortD; CEdit m_editPortC; CEdit m_editPortB; CEdit m_editPortA; CButton m_chkPortD; CButton m_chkPortC; CButton m_chkPortB; CButton m_chkPortA; CButton m_btnPortD; CButton m_btnPortC; CButton m_btnPortB; CButton m_btnPortA; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSample1Dlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CSample1Dlg) virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnCheckPorta(); afx_msg void OnButtonPortb(); afx_msg void OnButtonPortc(); afx_msg void OnButtonPortd(); afx_msg void OnCheckPortb(); afx_msg void OnCheckPortc(); afx_msg void OnCheckPortd(); afx_msg void OnButtonPorta(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SAMPLE1DLG_H__D0119087_428F_4E03_B0E7_8E554BF93A4F__INCLUDED_)