?? alarmview.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; //日志表記錄總數(shù)
BOOL m_acomf; //布防設(shè)置里面是否使用串口
BOOL m_dBuffIn; //布防設(shè)置里面是否使用并口
CStringArray strcj; //記錄函數(shù)分析出的多個字符串
CWordArray BFPortNum; //記錄布防設(shè)置里面的并口號
};
#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_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -