⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alarmview.h

📁 一款基于串口的自动报警系统的程序
💻 H
字号:
// alarmView.h : interface of the CalarmView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "SMSent.h"
//}}AFX_INCLUDES

#if !defined(AFX_alarmVIEW_H__5DB0692D_C657_4E55_8488_BC6F33B3C222__INCLUDED_)
#define AFX_alarmVIEW_H__5DB0692D_C657_4E55_8488_BC6F33B3C222__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Resource.h"
#include "RMain.h"

class CalarmView : public CFormView
{
protected: // create from serialization only
	CalarmView();
	DECLARE_DYNCREATE(CalarmView)

public:
	//{{AFX_DATA(CalarmView)
	enum { IDD = IDD_alarm_FORM };
	CListCtrl	m_logList;
	CSMSent	m_Comm1;
	CSMSent	m_Comm2;
	//}}AFX_DATA

// Attributes
public:
	CalarmDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CalarmView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void updateLog();
	virtual ~CalarmView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	_RecordsetPtr m_dlgRs;					//记录集变量,打开记录集
// Generated message map functions
protected:
	void getLpt();
	void initcom();
	int  analystRs(CString cjname);
	void processLook(BYTE br , BOOL c);
	void SpyOn();
	void initcpara();
	void ShowLog();
	//{{AFX_MSG(CalarmView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnUpdatealarmStart(CCmdUI* pCmdUI);
	afx_msg void OnalarmStart();
	afx_msg void OnOnCommMscomm2();
	afx_msg void OnSettings();
	afx_msg void OnLogManage();
	afx_msg void Onbufang();
	afx_msg void Onchujing();
	afx_msg void Ondngzuo();
	afx_msg void Onlog();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	BOOL m_Dong;	
	UINT_PTR m_dDate;
	BSTR m_DString;

	int m_dlgcn;					//日志表记录总数
	BOOL m_acomf;					//布防设置里面是否使用串口
	BOOL m_dBuffIn;					//布防设置里面是否使用并口

	CStringArray strcj;				//记录函数分析出的多个字符串
	CWordArray BFPortNum;		//记录布防设置里面的并口号
};

#ifndef _DEBUG  // debug version in alarmView.cpp
inline CalarmDoc* CalarmView::GetDocument()
   { return (CalarmDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_alarmVIEW_H__5DB0692D_C657_4E55_8488_BC6F33B3C222__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -