// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + // + FileName: Status.h Author: S.Hammond // + // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #ifndef _STATUS_H_ #define _STATUS_H_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + CStatus dialog // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ class CStatus : public CDialog { public: CStatus(CWnd* pParent = NULL); // standard constructor void SetSlave(int Slave); void SetDisplay(void); //{{AFX_DATA(CStatus) enum { IDD = IDD_STATUS }; CButton m_Set; CEdit m_sp; CEdit m_Temp; CButton m_sp1; CButton m_sp2; //}}AFX_DATA protected: // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CStatus) virtual BOOL DestroyWindow(); virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Address of slave device to monitor // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ int iSlave; // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Handle of timer used for updates // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UINT Timer; // Generated message map functions //{{AFX_MSG(CStatus) virtual BOOL OnInitDialog(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnSet(); afx_msg void OnChangeSp(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} //}}AFX_INSERT_LOCATION #ifdef _STATUS_C_ class CStatus *pStatus; #else extern class CStatus *pStatus; #endif // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #endif /* _STATUS_H_ */