// sample1Dlg.h : header file // #if !defined(AFX_SAMPLE1DLG_H__0BFD2409_E542_4F1E_BD4A_7B86D6A54DB0__INCLUDED_) #define AFX_SAMPLE1DLG_H__0BFD2409_E542_4F1E_BD4A_7B86D6A54DB0__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 void receiveMsg(const char *msg); void drop(); //call this to either drop the connection or when the connection appears to have been lost void received(const char *msg); BOOL ProcessDialogMessages(); void sendOutChar(); unsigned char inChar, outChar; int mode; bool aquiring; bool quitSearch; bool connected; // Dialog Data //{{AFX_DATA(CSample1Dlg) enum { IDD = IDD_SAMPLE1_DIALOG }; CButton m_startBTN; CButton m_versionBTN; CButton m_stopBTN; CButton m_sendBTN; CButton m_resendBTN; CButton m_helloBTN; CButton m_detectBTN; CButton m_addressBTN; CListBox m_messages; CStatic m_keyLow; CStatic m_keyHigh; CStatic m_outputArray[8]; CStatic m_inputArray[8]; CString m_detectString; CEdit m_addressEdit; CEdit m_editPort; CEdit m_editSend; CStatic m_settingsGroup; CStatic m_autoGroup; CStatic m_changeGroup; CStatic m_sendGroup; CStatic m_connectBTN; //}}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 OnConnectButton(); afx_msg void OnSendButton(); afx_msg void OnHelloButton(); afx_msg void OnVersionButton(); afx_msg void OnResendButton(); afx_msg void OnAddressButton(); afx_msg void OnStartButton(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnDetectButton(); afx_msg void OnStopButton(); afx_msg void OnOutput0(); afx_msg void OnOutput1(); afx_msg void OnOutput2(); afx_msg void OnOutput3(); afx_msg void OnOutput4(); afx_msg void OnOutput5(); afx_msg void OnOutput6(); afx_msg void OnOutput7(); //}}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__0BFD2409_E542_4F1E_BD4A_7B86D6A54DB0__INCLUDED_)