📄 alertview.h
字号:
// AlertView.h : interface of the CAlertView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_ALERTVIEW_H__5DB0692D_C657_4E55_8488_BC6F33B3C222__INCLUDED_)
#define AFX_ALERTVIEW_H__5DB0692D_C657_4E55_8488_BC6F33B3C222__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Resource.h"
#include "Regkey.h"
class CAlertView : public CFormView
{
protected: // create from serialization only
CAlertView();
DECLARE_DYNCREATE(CAlertView)
public:
//{{AFX_DATA(CAlertView)
enum { IDD = IDD_ALERT_FORM };
CListCtrl m_logList;
CMSComm m_Comm1;
CMSComm m_Comm2;
//}}AFX_DATA
// Attributes
public:
CAlertDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAlertView)
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 ~CAlertView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
_RecordsetPtr m_pRsLog; //记录集变量,打开记录集
// 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(CAlertView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnUpdateAlertStart(CCmdUI* pCmdUI);
afx_msg void OnAlertStart();
afx_msg void OnOnCommMscomm2();
afx_msg void OnSettings();
afx_msg void OnLogManage();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_bAction;
UINT_PTR m_nTimer;
BSTR m_bstrSQL;
int m_cntLog; //日志表记录总数
BOOL m_comInbf; //布防设置里面是否使用串口
BOOL m_lptInbf; //布防设置里面是否使用并口
CStringArray strcj; //记录函数分析出的多个字符串
CWordArray lptPortArray; //记录布防设置里面的并口号
};
#ifndef _DEBUG // debug version in AlertView.cpp
inline CAlertDoc* CAlertView::GetDocument()
{ return (CAlertDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ALERTVIEW_H__5DB0692D_C657_4E55_8488_BC6F33B3C222__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -